CHANGE STATE - < winstate >() ... [Pro]
Window CHANGE STATE <winstate>("Window","Window state") Available in: Professional edition
|
This command changes specified window state.
|
#
|
Parameter name
|
Parameter description
|
1
|
Window
|
Window identifier in form of Window Identification Path (WIP) or HWND. It identifies the window that state is to be changed.
|
2
|
Window state
|
Can be one of these values: "MIN" "RESTORE" "MAX" "ALWAYS_TOP" "NOT_ALWAYS_TOP" "HIDE" "SHOW"
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This macro minimizes "Notepad" window
|
2
|
Macro execution: ONLY COMMANDS
|
3
|
IF WINDOW "[* - Notepad|Notepad|#0|#119]" Is Open (Match=Partial)
|
4
|
Window CHANGE STATE Window=[* - Notepad|Notepad|#0|#119], Window state=Minimize
|
5
|
ELSE activate
|
6
|
Message SHOW "" : "'Notepad' is not opened!" (other parameters: x = 100, y = 100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).
|
7
|
ENDIF
|
|
Example (Plain Text):
<#> This macro minimizes "Notepad" window
<cmds>
<if_win>("[* - Notepad|Notepad|#0|#119]","OPEN",0)
<winstate>("[* - Notepad|Notepad|#0|#119]","MIN")
<else>
<msg>(100,100,"'Notepad' is not opened!","Message",1)
<endif>