Commands & Syntax > Commands > Macro Engine >

www.perfectkeyboard.com

 

Macro execution: ENABLE "Shift+Esc" hotkey. - < me_stop_enable > ... [Pro]

 

Macro execution: ENABLE "Shift+Esc" hotkey.
<me_stop_enable>
Available in: Professional edition

This command enables stopping of macro execution by "Shift+Esc" hotkey. This command is typically used after disables this option. After this command is processed, pressing "Shift+Esc" will have no effect. The "me_stop_enable" command enables "Shift+Esc" again.

 

 

Example (Macro Steps):

 

1

<#> <#> This macro shows how to enable/disable "Shift+Esc"

2

Macro execution: ONLY COMMANDS

3

Macro execution: DISABLE "Shift+Esc" hotkey.

4

<#> <#> Part of the macro that cannot be interrupted for integrity reasons comes here

5

<#> <#> We will supply it by 5 seconds wait command in this example

6

Message SHOW "" : "You cannot stop macro execution using "Shift+Esc" hotkey now. Wait for 5 seconds, please..." (other parameters: x = -100, y = -100, Window title = Message, Buttons = None, Timeout (seconds) = , Always on top = ).

7

WAIT wait "5000" ms (time is constant: "")

8

Message CLOSE

9

Macro execution: ENABLE "Shift+Esc" hotkey.

10

<#> <#> The rest of the macro can be interrupted using "Shift+Esc"

11

Message SHOW "" : "Now you can stop macro execution using "Shift+Esc" hotkey." (other parameters: x = -100, y = -100, Window title = Message, Buttons = None, Timeout (seconds) = , Always on top = ).

12

WAIT wait "5000" ms (time is constant: "")

13

Message CLOSE

Example (Plain Text):

 

<#> This macro shows how to enable/disable "Shift+Esc"

<#>

<cmds>

<me_stop_disable>

<#> Part of the macro that cannot be interrupted for integrity reasons comes here

<#> We will supply it by 5 seconds wait command in this example

<msg>(-100,-100,"You cannot stop macro execution using %_vQuoteChar%Shift+Esc%_vQuoteChar% hotkey now.

Wait for 5 seconds, please...","Message",0)

<wx>(5000)

<msgoff>

<me_stop_enable>

<#> The rest of the macro can be interrupted using "Shift+Esc"

<msg>(-100,-100,"Now you can stop macro execution using %_vQuoteChar%Shift+Esc%_vQuoteChar% hotkey.","Message",0)

<wx>(5000)

<msgoff>