Lookin the readme for how to clear keypresses.
Here's a snippet from hunter.mac that does just that.
Code: Select all
|
| First off put clean up any open windows and make sure modifier keys are reset
/press esc
/press esc
/press esc
/press esc
/press alt
/press shift
/press ctrl
ya just need your if statement...not sure how MQ catches keypresses tho, but something like
/if sendkey 1 down { /sendkey / down /sendkey / up(prolly gonna need the ascii for it...) /sendkey e down /sendkey e up /sendkey n down(repeat for all of endmacro, since I don't think echo will work, but it might...
Echo's just a print to screen function, so I don't know that EQ would pick it up as a command or not...I think EQ pretty much ignores most textoutput spam....
otherwise
/echo /endmacro
}
I don't think you'd wanna use esc, cuz esc clears crud from MQ's macro allocated variables.
Trouble is that you're going to have to run this macro....so you'd prolly wanna name it like leavemacro.mac and add it to the routines.mac file, then call it from the script you're running.
That is, unless they implement something like delphi's OnGlobalKeyPress for MQ, in which case it'd be easy as hell. :)
That was probably a useless post..., and yeah it'd be easy as hell to do it from perl too, but you're still gonna have to *run* the thing to make it stop, and you can't run two macros at the same time....so you'll ahve to add it somewhere. :)
~Malachi