UVK scripting commands - ->WaitControlState()

Show menu



->WaitControlState( ClassNN/ID , state , timeout , winIndex )


Pause script execution until a specific control has the specified state.


ClassNN/ID - The control's ClassNN, Advanced mode, ID or text.
state (optional) - The required state. Valid values are: Enabled, Disabled, Visible, Hidden. Default is Visible.
timeout (optional) - The timeout, in seconds. Default is 1000000.
winIndex (optional) - The index of the window the control belongs to. Default is the last ->WaitWindow() or ->WaitWindow2().


Optional parameters do not need to be specified.
This function must be called after at least one call to ->WaitWindow(), otherwise it will fail.


;Open notepad, wait until the text box is visible and sent two lies of text
->SendText(Testing Notepad Automation{ENTER}Second line)


Back to the list



Copyright Carifred © 2010 - 2024, all rights reserved.

Scroll to top