<waitfor> Wait for a special event (window, clipboard, key, mouse) to occur.
Command Tree: | Macro Flow Control \ Wait \ Wait X milisec | ||||||||||||||||||||
. | |||||||||||||||||||||
Syntax: | <waitfor>("Object", "Event", "Param", TimeOut, Exact) | ||||||||||||||||||||
. |
|
||||||||||||||||||||
. | |||||||||||||||||||||
Example: | <#> This macro shows how to use 'waitfor' command <#> <commands_only_on> <msg>(100,100,"Press 'Ctrl' key to continue this macro.","Message",0) <waitfor>("KEY","","<ctrl>",5,0) <msgoff> <msg>(100,100,"Press left mouse button to continue this macro.","Message",0) <waitfor>("MOUSE","","<mlbu>",5,0) <msgoff> <msg>(100,100,"Macro is finished.","Message",1) |