Commands & Syntax > Commands > Macro Flow Control >

www.MacroToolworks.com

WAIT - < wx >() ... [Free]

 

WAIT
<wx>(Time to wait,Wait time is constant (not adjusted to macro speed))
Available in: Free edition

The command postpones macro execution for X milliseconds. The behavior of this command depends on the macro playback speed that can user specify for each macro in the "Item Properties" dialog box.

 

#

Parameter name

Parameter description

1

Time to wait

Time to wait in milliseconds.

2

Wait time is constant (not adjusted to macro speed)

Wait time is constant (not adjusted to macro speed).

 

Example (Macro Steps):

 

1

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

2

Macro execution: ONLY COMMANDS

3

Variable SET "vTime=", Message text="How many seconds to wait ?"

4

<#> <#> Calculate time to wait from seconds to milliseconds

5

Variable OPERATION "CALC_EXPRESSION" (Variable for result = vTime, Input text/variable = %vTime%*1000, Parameter 1 = 0, Parameter 2 = , Parameter 3 = 0)

6

WAIT wait "vTime" ms (time is constant: "")

7

Message SHOW "" : "Specified time is out." (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 'wx' command

<#>

<cmds>

<varset>("vTime=","How many seconds to wait ?")

<#> Calculate time to wait from seconds to milliseconds

<var_oper>(vTime,"%vTime%*1000",CALC_EXPRESSION,"0","", "0")

<wx>(vTime)

<msg>(100,100,"Specified time is out.","Message",1)