Home > Language Reference > Windows Management Functions > MinimizeWindow

MinimizeWindow

The MinimizeWindow function minimizes the specified window.

Usage

Used to minimize a window and make it appear only in the task bar.

Syntax

ret=MinimizeWindow(<window_name>)

Parameters

<window_name>, string, window name of the window to minimize. You can truncate <window_name> to minimize a window whose title starts with the specified characters.

Return value

ret, optional numeric return value. If the window has been successfully minimized within 30 seconds (this default value can be changed using #ActionTimeout), the function returns 0. If the function fails, the return value is a nonzero value (see Window Functions Error Codes).

See also

MaximizeWindow
MoveWindow
SizeWindow

Examples

MinimizeWindow("NOTEPAD.EXE|Notepad|Untitled - Notepad")

ret=MinimizeWindow("NOTEPAD.EXE|Notepad|")