Commands & Syntax > Commands > Macro Flow Control >

www.perfectkeyboard.com

 

Macro EXIT (do not exit calling macro) - < exitmacro_soft > ... [Pro]

 

Macro EXIT (do not exit calling macro)
<exitmacro_soft>
Available in: Professional edition

This command stops macro execution. If the macro is called using "run" command from other macro then the calling macro is not stopped and continues execution.

 

 

Example (Macro Steps):

 

1

<#> <#> This macro shows how to use "exitmacro_soft 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 (do not exit calling macro)

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_soft command

<cmds>

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

<if_str>("_vMsgButton==YES")

<exitmacro_soft>

<endif>

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