Wait for Pointer Action Icon

Wait for Pointer




<AMWAITFORPOINTER ACTION="text (options)" POINTER="text (options)" />

See Also

Pause Task | Wait for File | Wait for Pixel | Wait for Pointer | Wait for Process | Wait for Window | Stop Timer | Read Timer  | Start Timer


Causes task execution to pause at the current line until the mouse pointer matches or differs from the specified cursor type.

Practical Usage

Commonly used to wait for the mouse pointer to change from a Busy or Working in Background state back to its normal select state to indicate that processing has completed.


General Properties








Text (options)




Specifies whether to wait for the pointer to match the specified pointer(s), differ from the specified pointer(s), or change to any other pointer. The available options are:

  • Wait for pointer to match (default) - Wait until the pointer matches at least one of the pointer(s) specified in the Pointer to wait for parameter.

  • Wait for pointer to differ from - Wait until the pointer does not match any of the pointer(s) specified in the pointer Pointer to wait for parameter.

  • Wait for pointer to change - Wait until the pointer changes to any pointer other than the current pointer at the time the step begins execution.

Pointer to wait for

Text (options)




The pointer type(s) that AutoMate should wait for. Multiple type(s) may be specified separated with commas. To select more than one pointer, hold down CTRL during selection. The available pointer types are:

  • NormalSelect

  • HelpSelect

  • WorkingInBackground

  • Busy

  • PrecisionSelect

  • TextSelect

  • Unavailable

  • VerticalResize

  • HorizontalResize

  • DiagonalResize1

  • DiagonalResize2

  • Move

  • AlternateSelect

  • LinkSelect

Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder


NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.


Sample 1 - Wait for pointer to match a busy pointer





Sample 2 - Wait for pointer to differ from a NormalSelect, HelpSelect or WorkingBackground pointer.


<AMWAITFORPOINTER ACTION="differ" POINTER="normalselect,helpselect,workinginbackground" />




Sample 3 - Wait until the pointer changes to any pointer other than the current pointer.




↑ Top of Page