Commands & Syntax > Commands > Macro Flow Control >

www.perfectkeyboard.com

 

Macro EXIT - < exitmacro > ... [Pro]

 

Macro EXIT
<exitmacro>
Available in: Professional edition

This command stops macro execution. If the macro is called using "run" command from other macro, also the calling macro is stopped.

 

 

Example (Macro Steps):

 

1

<#> <#> This macro shows how to use command

2

Macro execution: ONLY COMMANDS

3

Message SHOW "" : "Do you want to exit macro execution now?" (other parameters: x = -100, y = -100, Window title = Message, Buttons = Yes and No, Timeout (seconds) = , Always on top = ).

4

IF STRING _vMsgButton==YES

5

Macro EXIT

6

ENDIF

7

Message SHOW "" : "OK, macro execution continues then..." (other parameters: x = -100, y = -100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).

Example (Plain Text):

 

<#> This macro shows how to use <exitmacro> command

<cmds>

<msg>(-100,-100,"Do you want to exit macro execution now?","Message",2)

<if_str>("_vMsgButton==YES")

<exitmacro>

<endif>

<msg>(-100,-100,"OK, macro execution continues then...","Message",1)