Wait Action| *Tip:
The Wait Action provides scheduling capabilities for vTask. A script or compiled EXE can be launched, and run as long as needed in the background, and will not degrade the computer's performance.
|
| *Tip:
It is highly recommended to use the Tray Icon action while running the Wait command. It allows you to control the script while it is running, which is especially important when running this action inside of a compiled EXE - it may be the only way to stop the running program.
|
Delay
Wait For Date/Time
Wait For Keypress
Wait For Typed Text
Wait For Mouse
Wait for Window
| Match Condition | Description |
| Appear | when the window exists anywhere on the system, even hidden or minimized |
| Activate | when the window is on top or contains the focus (such as the typing cursor) |
| Close | when the window no longer exists (not just when it is minimized) |

<step> <action>Comment</action> <comment>PURPOSE: A sample script to demonstrate basic Wait for Window functionality</comment> </step> <step> <action>Start</action> <text>calc.exe</text> <options>Single</options> <comment>This script starts Calculator</comment> </step> <step> <action>Delay</action> <timeout>1</timeout> </step> <step> <action>Comment</action> <comment>Confirm the window is visible</comment> </step> <step> <action>IF Window Exists</action> <text>Calculator</text> <options>IF NOT,Exact Title</options> </step> <step> <action>Display Warning</action> <text>Window not found!</text> <indents>1</indents> </step> <step> <action>Exit Run</action> <indents>1</indents> </step> <step> <action>END IF</action> </step> <step> <action>Comment</action> <comment>Wait for the window to close... (manually close calculator)</comment> </step> <step> <action>Wait for Window</action> <text>Calculator</text> <options>Exact Title</options> <value1>Close</value1> <timeout>10</timeout> <comment>Now, close Calculator (within 10 seconds)</comment> </step> <step> <action>Display Message</action> <text>Calculator is closed!</text> <comment>When closed, this will show</comment> </step> |
Wait for File
| Match Condition | Description |
| Exist | The file can be any size, 0 bytes or larger. If the file already exists when this step is first encountered, processing immediately continues with the next step. |
| Not Exist | Passes if the file does not exist |
| Change | Passes if the file size or checksum (file contents) changes.
Any change in exist/not exist status also causes this check to pass (ie, if it is created or deleted while waiting). |
Wait for Folder
| Match Condition | Description |
| Exist | A folder simply needs to exist to pass, and may be empty of files. If the folder already exists when this step is first encountered, processing immediately continues with the next step. |
| Not Exist | Passes if the folder does not exist |
| Change | Passes if anything in the folder (or any sub-folders) changes.
This also includes any files under the main folder that are added, deleted, or changed.
Any change in exist/not exist status also causes this check to pass (ie, if it is created or deleted while waiting). |
Wait for Image to Appear
Wait for Clipboard
| Match Condition | Description |
| Exact Text | The provided text must match in length and case |
| Partial Text | The provided text must exist somewhere inside of the clipboard, and is case insensitive |
| Any Text | Passes as soon as the clipboard is not empty |
| When Empty | Passes as soon as the clipboard does not contain any data |
Wait for Screen Saver
Wait For Idle
| *Tip:
Be sure to have the Timeout value greater than the Interval time value, so that the Wait for Idle command executes properly.
If you have a timeout value that is shorter than the Idle Interval value, this wait command will never be idle long enough to actually complete.
By design, vTask will not override your timeout settings so the appropriate value is larger.
|
Wait For Restart
| Restart Option | Description |
| Temporary (single) | The script is paused until the next restart. No future restarts will run the script, unless the script is manually started again. |
| Permanent (every restart) | The script is run on every restart of the computer. It does not need to be manually restarted again. To remove this setting, either change the option and run the script, or choose the "Remove Pending Restarts" option. |
| Never (remove pending) | Performs no action other than removing any pending restart requests by vTask (either temporary or permanent) |