WinActivate

Activates a previously running parent window.

Syntax:

WinActivate (partial-winname)

Parameters:

(s) partial-winname either an initial portion of, or an entire window  name. The most-recently used window whose title matches the name will be activated.

Returns:

(i) @TRUE if a window was found to activate, @FALSE if no windows were found.

 

Use this function to activate windows for user input.

This function works only with top-level (parent) application windows.

Example:


Run("notepad.exe", "")
WinActivate("~Notepad")

See Also:

WinActiveChild, WinGetActive, WinName, WinShow, Partial Window Names, IntControl 46