UVK scripting commands - ->ControlSend()

Show menu



->ControlSend( ClassNN/ID , textToSend , winIndex )


Send keystrokes to a specific control in a window.


ClassNN/ID - The control's ClassNN, Advanced mode, ID or text.
textToSend - The keystrokes to send to the control. Can be either keyboard or mouse input.
winIndex (optional) - The index of the window the control belongs to. Default is the last ->WaitWindow() index.


Optional parameters do not need to be specified.
This function must be called after at least one call to ->WaitWindow(), otherwise it will fail.
The text to send does NOT need to be enclosed in quotes or double quotes.


;Open notepad and send "My text" to the text box
->ControlSend(Edit1,Line 1{ENTER}Line 2)


Back to the list



Copyright Carifred © 2010 - 2023, all rights reserved.

Scroll to top