DELAYPerform the delay. Unlike the sleep directive, command delay perform direct delay regardless of any conditions, same as sleeps, sleep or skip directives.In addition command delay cancel any pauses between previous and next commands only for current step like the skip directive. [Current PAUSE] = 0 ms [Delay time] = ms + sec * 1000 + min * 1000 * 60 + hours * 1000 * 60 * 60. Syntaxdelay [ ms [ sec [ min [hours] ] ] ] Parameters[ ms [ sec [ min [hours] ] ] ]
RemarksIt is recommended to use the sleep directive wherever possible. You must use delay only in exceptional cases.Example 0x00sleeps 100 ; Set sleeps = 100 ms 10 CYCLE: ; Define Label named as "CYCLE" sleep 1000 ; Set [Current step] = 1000 ms rol 6 delay 0 1 ; Perform delay for 1000 ms and skip usual pause rol 6 goto CYCLE ; Goto the Label named as "CYCLE"
|