BLOCK - < mouse_block > ... [Pro]
Mouse BLOCK |
||||||||||||||
This command blocks mouse events. It can be used when it is necessary to disable mouse events during macro execution, for example, before "wait for mouse" 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 mouse, use "mouse_unblock" command. |
||||||||||||||
|
||||||||||||||
|
||||||||||||||
Example (Macro Steps):
|
||||||||||||||
|
Example (Plain Text):
<#> This macro shows how to use 'mouse_block' and 'mouse_unblock' commands
<cmds>
<msg>(32,32,"Waiting untill right-click ....","Message",0,0,0,0)
<mouse_block>
<waitfor>("MOUSE","PRESS","<mrbd>",10,0)
<mouse_unblock>
<msgoff>