UVK scripting commands - ->WinSend()

Show menu



->WinSend( textToSend , winIndex )


Send keystrokes to a window.


textToSend - The keystrokes to send to the window. Can be either keyboard or mouse input.
winIndex (optional) - The index of the window. 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.

This function is similar to ->ControlSend, except the keystrokes are sent to the application's main window instead of a child control.
Useful to send keystrokes to console applications that don't have any controls.


;Open the command prompt and start system file checker scan
%SystemDir%\cmd.exe /k
->WinSend(sfc.exe /scannow{Enter})


Back to the list



Copyright Carifred © 2010 - 2024, all rights reserved.

Scroll to top