Await Wait Cursor

Verb: waitCursor

Awaits a period of time to execute the next instructions in the script when the mouse cursor is in wait state.

Syntax

waitCursor [--timeout(TimeSpan)]

Inputs

Script Designer Required AcceptedTypes Description
--timeout Timeout Optional Time Span, Number, Text Maximum time to wait for the action to finish or load, the progress of which is indicated by the mouse's waiting state.
If the defined waiting time has elapsed and the action has not been completed, the script is terminated without executing the next action.

Example

Command awaits the execution of an instruction, indicated by the mouse cursor, which is in a wait state for 30 seconds. If the state of the mouse changes, indicating the completion of the execution, the next execution is started.

defVar --name cursosWaitTime --type TimeSpan --value "00:00:30"
// Instruction that takes time to load an action.
waitCursor --timeout ${cursorWaitTime}
// The example simulates the command being executed: the mouse would indicate the state of waiting for something to be loaded.
// ... continues the script.

Remarks

Await Wait Cursor awaits the mouse cursor animation, which indicates that the system is waiting for an action or a process to load. This is usually represented by an animation of an hourglass or a rotating circle.

See Also

  • Close Progress Window
  • Input Box
  • Minimize or Maximize Windows
  • Open Save As Dialog Box
  • Select File
  • Select Folder
  • Show Message Box
  • Show Progress Window
  • Take a Screenshot