Function Reference

SendKeepActive

Attempts to keep a specified window active during Send().

SendKeepActive ( "title" [, "text"] )

 

Parameters

title The title of the window to activate. See Title special definition. Use a blank title to disable the function.
text [optional] The text of the window.

 

Return Value

Success: Returns 1.
Failure: Returns 0 if window is not found.

 

Remarks

Attempts to reset the active window in between each simulated keystroke from Send().

 

Related

Send

 

Example


Run("notepad.exe")
WinWait("Untitled")

SendKeepActive("Untitled")

; Change the active window during pauses
For $i = 1 to 10
    Sleep(1000)
    Send("Hello")
Next