<if_win> Window-related condition.
| Command Tree: | Macro Flow Control \ If-Else \ If Window | ||||||||||||
| . | |||||||||||||
| Syntax: | <if_win>("WinTitle",
"Condition", Match)
|
||||||||||||
| . | |||||||||||||
| . | |||||||||||||
| Example: | <#> This macro shows how to use if-win command <#> <commands_only_on> <if_win>("notepad","OPEN",0) <if_win>("Notepad","ACT",0) <msg>(100,100,"Notepad is opened and active.","Message",1) <else> <msg>(100,100,"Notepad is opened but not active.","Message",1) <endif> <else> <msg>(100,100,"Notepad is not opened.","Message",1) <endif> |