Commands & Syntax > Commands > Macro Flow Control >

Jump TARGET - < label >() ... [Pro]

www.perfectkeyboard.com

 

Jump TARGET
<label>("Label")
Available in: Professional edition

Specifies the step in the macro where you can jump using "Jump TO" ("goto") command.

 

#

Parameter name

Parameter description

1

Label

Name of label that marks the step to jump to.

 

Example (Macro Steps):

 

1

<#> <#> This macro shows how to jump to particular step in the macro

2

Macro execution: ONLY COMMANDS

3

Loop BEGIN Repeat = 0

4

IF NUMERIC _vLoopCounter>5

5

Message SHOW "" : "Too many loops, jumping to the end." (other parameters: x = 100, y = 100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).

6

Jump TO "END"

7

ENDIF

8

Loop END

9

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

10

Jump TARGET "END"

Example (Plain Text):

 

<#> This macro shows how to jump to particular step in the macro

<#>

<cmds>

<begloop>(0)

<if_num>("_vLoopCounter>5")

   <msg>(100,100,"Too many loops, jumping to the end.","Message",1)

   <goto>("END")

<endif>

<endloop>

 

<msg>(100,100,"OK","Message",1)

<label>("END")