Commands & Syntax > Commands > Macro Flow Control >

www.perfectkeyboard.com

 

Procedure EXIT - < proc_exit > ... [Pro]

 

Procedure EXIT
<proc_exit>
Available in: Professional edition

This command exits procedure execution.

 

 

Example (Macro Steps):

 

1

<#> <#> This example shows how to use "proc_exit" command

2

Macro execution: ONLY COMMANDS

3

Procedure BEGIN: Example with parameters ()

4

Repeat steps UNTIL "i<1000" (Counter variable initial value = "i=0", Counter loop increment = "1")

5

IF i > 100

6

Message SHOW "Information" : "Exiting procedure execution" (other parameters: x = -100, y = -100, Window title = Result, Buttons = OK, Timeout (seconds) = 0, Always on top = No).

7

Procedure EXIT

8

ENDIF

9

Repeat steps END

10

Procedure END

11

Procedure CALL: Example with parameters ()

12

Message SHOW "Information" : "Macro is finished" (other parameters: x = -100, y = -100, Window title = Result, Buttons = OK, Timeout (seconds) = 0, Always on top = No).

Example (Plain Text):

 

<#> This example shows how to use "proc_exit" command

<cmds>

<proc_def_begin>(Example,)

   <for>("i=0","i<1000","1")

<if>("i > 100")

<msg>(-100,-100,"Exiting procedure execution","Result",1,0,0,0)

<proc_exit>

<endif>

<for_end>

<proc_def_end>

 

<proc_call>(Example,)

 

<msg>(-100,-100,"Macro is finished","Result",1,0,0,0)