clyc84
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by clyc84
-
-
This is a good challenge...
I've been tinkering, but haven't figured it out. Let me confirm your meaning though:
You want it to wait until Z *or* X is pressed--step one.
If Z it pressed it clicks "here."
If X is pressed it clicks "there."
Either pressing Z or X completes step one.
Once step one is completed any key can be pressed...
Question: Once the last key is pressed, the macro stops? or it continues to loop?
From you post it sounds like it continues to loop...
If it continues to loop, maybe you don't need the, third, 'any' key.
Just continue pressing X or Z (?)
If this were the case though, you'd have to have a kill command to tell MacExp when you're done and want to stop looping.
I was experimenting and tried:
-Loop until T1 <>T1
-Wait for key press Z
--OR-
-Wait for key press X
-Display text box "Z or X pressed"
-End Loop.
This was syntactically correct, and if I pressed either X or Z I'd get the text box, but it was a continual loop. The macro kept running until I aborted it.
I then tried:
-Loop until T1 <>T1
-Wait for key press Z
-Display text box "Z pressed"
--OR-
-Wait for key press X
-Display text box "X pressed"
-End Loop.
The debugger told me this is an incorrect use of "OR."
It seems like you could capture a keypress and send it straight to a variable, then use logic to compare the variable.
(If this then that) I can't see how to do this without the use of a GUI dialog box though... Maybe others have an idea. steveK
Question: Once the last key is pressed, the macro stops? or it continues to loop?From you post it sounds like it continues to loop...
it will continue to loop, and thats what i wanted it to be
and yes my concept is to let it wait for any key press after 'Z' or 'X' or 'C' is pressed
but currently after 'Z' is pressed it will wait for 'X' to be pressed, pressing on 'Z' or 'C' it will not response
Question: how did u manage to run the macro with the OR operator, I am unable to even save it.
-
trying to create a macro to wait for multiple key press to left click once activated, created one below but it will wait for the next key press after the first one:
question: how can I let it wait for any key once x is pressed or z is pressed, meaning to go back to the start of the loop once any key is pressed.
Wait for multiple key press
in Macro Express 3.x
Posted
the script waits for either of the key but the same action will be executed, whereas I need to script it to be doing different action upon each key is pressed.
I thought of that too but I will not be able to run 2 macros concurrently, I will need it to be waiting for either of the 3 keys for some time therefore need it to be looping.
thanks for the advice and testing