BLOCK - < keys_block > ... [Pro]
Keyboard BLOCK |
||||||||||||||||
This command blocks keyboard keys. It can be used when it is necessary to disable keyboard input during macro execution, for example, before "wait for key" command ("waitfor"). If it is required to disable keyboard and mouse input during whole macro execution then it is also possible to use "Lock keyboard and mouse while macro is running" option in the macro settings tab. To unblock keyboard, use "keys_unblock" command. |
||||||||||||||||
|
||||||||||||||||
|
||||||||||||||||
Example (Macro Steps):
|
||||||||||||||||
|
Example (Plain Text):
<#> This macro shows how to use 'keys_block' and 'keys_unblock' commands
<cmds>
<msg>(32,32,"Waiting untill 'a' key is pressed....","Message",0,0,0,0)
<keys_block>
<waitfor>("KEY","PRESS","a",50,0)
<waitfor>("KEY","RELEASE","a",50,0)
<keys_unblock>
<msgoff>