Commands & Syntax > Commands > Keyboard >

UNBLOCK - < keys_unblock > ... [Pro]

www.perfectkeyboard.com

 

Keyboard UNBLOCK
<keys_unblock>
Available in: Professional edition

This command unblock keyboard keys after a previous use of "keys_block" command.

 

 

Example (Macro Steps):

 

1

<#> <#> This macro shows how to use 'keys_block' and 'keys_unblock' commands

2

Macro execution: ONLY COMMANDS

3

Message SHOW "Information" : "Waiting untill 'a' key is pressed...." (other parameters: x = 32, y = 32, Window title = Message, Buttons = None, Timeout (seconds) = 0, Always on top = No).

4

Keyboard BLOCK

5

WAIT FOR Object = "KEY", Event = "PRESS", Parameter = "a", Timeout (seconds) = "50", Exact = "0"

6

WAIT FOR Object = "KEY", Event = "RELEASE", Parameter = "a", Timeout (seconds) = "50", Exact = "0"

7

Keyboard UNBLOCK

8

Message CLOSE

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>