|
Command
|
Description
|
| ~exit | Exits the script immediately. For example: Untitled - Notepad=~exit Tells your script to exit when it sees the Untitled - Notepad window. |
| ~wait | Causes a five-second delay in the execution of the script (this is the same as using ##). For example: Network=~wait Causes ScriptIt to pause for five seconds when the Control Panel’s Network window appears. The line Network=## has the same result. |
| ~winclose | Causes ScriptIt to close the window and terminate the executable that created it. For example: Untitled - Notepad=~winclose causes ScriptIt to shut down the Notepad instance that created that window. |
| ~winhide | Causes ScriptIt to make the specified window invisible. For example: Untitled - Notepad=~winhide causes ScriptIt to hide the window titled Untitled - Notepad. The window is still there, but the user cannot see it. |
| ~winmax | Causes ScriptIt to display the specified window as a full-screen window. For example: Untitled - Notepad=~winmax causes ScriptIt to maximize the specified Notepad window. |
| ~winmin | Causes ScriptIt to display the specified window as an icon. For example: Untitled - Notepad=~winmin causes ScriptIt to minimize the specified Notepad window. |
| ~winshow | Causes ScriptIt to show the specified window if it is currently hidden. For example: Untitled - Notepad=~winshow causes ScriptIt to make the hidden Untitled - Notepad window visible again. |
| ~winwaitactive | By default, if a window exists, hidden or visible, ScriptIt attempts to send keystrokes to it, even if it isn’t ready to accept input. This command causes ScriptIt to pause execution until the specified window receives the focus. For example: Untitled - Notepad=~winwaitactive#Hello causes ScriptIt to wait until the Untitled - Notepad window gets the focus. Once that happens, the script continues by sending the string "Hello" to the Notepad window. This feature is useful when a window exists but it is not ready to receive keystrokes because the setup program is busy doing something else, such as copying files. |
| ~winwaitclose | Causes the script to pause until the window is closed. For example: Setup=~winwaitclose Causes the script to pause until the Setup window closes. This is very useful when setup programs have multiple windows open. ScriptIt will want to continue when it sees a window title that it needs to send keystrokes to; however, a previous step may not have finished. Using ~winwaitclose allows you to pause your script until the previous step completes. |