Is it posssible to go to a certain label or sub routine based on input. I would like to avoid using the input>, I don't need a dialog box.
Example like this..
if>keypressed = k, label1
if>keypressed = abcd, label2
etc..
Thanks in Advance
going to a label or sub routine based on key input
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Don't think you can do it with Macro Scheduler, unless.....
1. Using VB script within Macro Scheduler to trap keyinput? but I don't know if that is possible, just trying to think of options.
2. Use an Input> command but minimize the window. Probably won't work either because I think you will need focus.
3. Make a set of "hot-key" macros to pick up the actions at the Label>s you have in mind. So when "k" is entered, it calls macro label1. But even if this worked, you'd be using hot-key combos vs. straight keyboard. So I guess this idea is also no good.
4. Whatever solution you come up with will probably have to disable your normal keyboard inputs. So maybe you need a utility to temporarily take over your keyboard? I have not used it yet, but I heard good things about KDWin 3.1, available at: http://www.troy.am/dictionary which is supposed to allow you to do some types of remapping on your keuboard.
But all in all, I will be very surprised if you can do this trap of the keyboard in the middle of a Macro Scheduler script. Will be interested in your results.
1. Using VB script within Macro Scheduler to trap keyinput? but I don't know if that is possible, just trying to think of options.
2. Use an Input> command but minimize the window. Probably won't work either because I think you will need focus.
3. Make a set of "hot-key" macros to pick up the actions at the Label>s you have in mind. So when "k" is entered, it calls macro label1. But even if this worked, you'd be using hot-key combos vs. straight keyboard. So I guess this idea is also no good.
4. Whatever solution you come up with will probably have to disable your normal keyboard inputs. So maybe you need a utility to temporarily take over your keyboard? I have not used it yet, but I heard good things about KDWin 3.1, available at: http://www.troy.am/dictionary which is supposed to allow you to do some types of remapping on your keuboard.
But all in all, I will be very surprised if you can do this trap of the keyboard in the middle of a Macro Scheduler script. Will be interested in your results.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Hi Lumumba, I don't think I have ever seen MJTNET remove a message because another program was mentioned. I have seen that happen on other forums, but never here. A simple mention should be tolerated, a blatent advertisement would be out of the question though.
So now I am curious about which scripting tool I know about that could handle this.
I wonder, aughta it be obvious to me without you mentioning it?
So now I am curious about which scripting tool I know about that could handle this.
I wonder, aughta it be obvious to me without you mentioning it?
Last edited by Bob Hansen on Mon May 03, 2004 10:40 pm, edited 1 time in total.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
That statement was based on my own experience with one of my postings. To be honest, I recommended a tool using a direct link to its webpage.
That posting has been removed, which I've accepted - cause Macro Scheduler isn't for free and why they should provide a plattform which points to competitors ?
But it was just a response to a request in this forum no add. I'm a user and have no benefit from anything i've ever recommended here or there and everywhere
If you wanna check what I'm talking about google for: GetKeyState ahk
You will easily realize that you already know minimum one of both mentioned apps (I've "seen" you at their forum )
That posting has been removed, which I've accepted - cause Macro Scheduler isn't for free and why they should provide a plattform which points to competitors ?
But it was just a response to a request in this forum no add. I'm a user and have no benefit from anything i've ever recommended here or there and everywhere
If you wanna check what I'm talking about google for: GetKeyState ahk
You will easily realize that you already know minimum one of both mentioned apps (I've "seen" you at their forum )
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Yes, like you, I have many tools in the toolbox. No one tool will ever do everything. And I also have no vested interest when mentioning other tools, just trying to work together to come up with sensible solutions..You will easily realize that you already know minimum one of both mentioned apps
I thought I was being quite bold in my earlier response:
but I guess you missed that.I wonder, aughta it be obvious to me without you mentioning it?
While I am here Lumumba, I just want to pass on a sincere "Thank You" to you for all the help you have provided on Macro Scheduler forum. Your help has been invaluable. Macro Scheduler is a great product and people like you help to provide a great forum.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!