Commands & Syntax > Commands > Macro Flow Control >

www.perfectkeyboard.com

 

Loop END - < endloop > ... [Pro]

 

Loop END
<endloop>
Available in: Professional edition

Begins loop. The loop allows to repeat some part of macro many times. Each commands must be followed by .

 

 

Example (Macro Steps):

 

1

<#> <#> This example shows how to use loop commands

2

Macro execution: ONLY COMMANDS

3

Variable SET "vNum=", Message text="How many Notepads you want to open ?"

4

Loop BEGIN Repeat = vNum

5

Run APPLICATION "notepad.exe" (other parameters: Parameters = , Folder path = , Window state = Normal). Macro execution waits for application to finish up to "0" seconds.

6

Loop END

Example (Plain Text):

 

<#> This example shows how to use loop commands

<#>

<cmds>

<varset>("vNum=","How many Notepads you want to open ?")

<begloop>(vNum)

   <execappex>("notepad.exe","","",0,0)

<endloop>