Core Function WinActivate
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> WinActivate ( <title>, <text> ) </pre> === Description === Activates (gives focus to) a window. === Parameters === ==== Title ==== The title of the window to activate....")
Newer edit →
(Created page with "<pre> WinActivate ( <title>, <text> ) </pre> === Description === Activates (gives focus to) a window. === Parameters === ==== Title ==== The title of the window to activate....")
Newer edit →
Revision as of 23:17, 26 November 2011
WinActivate ( <title>, <text> )
Contents |
Description
Activates (gives focus to) a window.
Parameters
Title
The title of the window to activate.
clicks
Optional; The text of the window to activate.
Return Value
None
Remarks
You can use the WinActive function to check if WinActivate succeeded.
If multiple windows match the criteria, the window that was most recently active is the one activated.
WinActivate works on minimized windows. However, a window that is "Always On Top" could still cover up a window you Activated.
See "WinTitleMatchMode" in Opt
Example
WinActivate("Untitled - Notepad")