UVK scripting commands - ->Sleep()

Show menu

->Sleep()

Syntax:

->Sleep( time, inms = 1 )

Description:

Pause the script execution for the specified time.

Parameters:

time - The time to pause, in miliseconds or seconds, depending on the value of inms.
inms - whether the time value indicates miliseconds or seconds. 1 = miliseconds (default), 0 = seconds.

Remarks:

Unlike the <Sleep> keyword, this function can take the time to pause in miliseconds.

Example:

;This code block will open notepad, sleep one second, and then send "My text" to the text box
 <Run>
notepad.exe
->WaitWindow()
->Sleep(1000)
->ControlSend(Edit1,My text)

 

Back to the list

 


 

Matched content by Google

Copyright Carifred © 2010 - 2020, all rights reserved.