Click Mouse Action Icon

Click Mouse

 

Declaration

<AMMOUSECLICK CLICK="text" BUTTON="text">

See Also

Check | Get Selected List Item | Get Selected Tree Item | Get Text | Hold Down Key | Move Mouse | Move Mouse to Object | Press | Release Key | Select Item | Select List Item | Select Tree Item | Send Keystrokes | Set Text

Description

Clicks the mouse according to the parameters you specify.

Practical Usage

Mostly used after a Move Mouse or Move Mouse to Object step to click the specified button after the mouse has been moved to the desired area or object.

Parameters

General Properties

Property
Type
Req'd
Default
Markup
Description

Click the following button

Text (options)

Yes

Left

BUTTON="center"

The button that should be clicked on the mouse. The available options are:

  • Left: Click the left mouse button.

  • Center: Click the center mouse button.

  • Right: Click the right mouse button.

Click Type

Text (options)

Yes

Single click

CLICK="double"

The type of click that should take place on the mouse. The available options are:

  • Single click: Single click the mouse button specified.

  • Double click: Double-click with the mouse button specified.

  • Hold down: Hold-down the mouse button specified.

  • Release: Release the mouse button specified.

NOTE: The Hold down option will hold down the mouse button for the duration of the task. If you want the mouse button released during execution, make sure to add a step that releases the mouse button.

 

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

Example

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

 

Description: This sample task runs the following steps:

  1. An Open Web Page action opens the web page www.google.com.

  2. A Set Text action sets the text "Business Process Automation Software" in the search box.

  3. A Move Mouse to Object action moves the mouse cursor to the "Google Search" button.

  4. A Click Mouse action clicks the "Google Search' button.

 

<AMOPENWEBPAGE URL="www.google.com/" />

<AMSETTEXT WINDOWTITLE="Google - Windows Internet Explorer" OBJECTNAME="Google Search" OBJECTCLASS="Internet Explorer_Server" OBJECTTYPE="SelectableText" CHECKOBJECTNAME="YES" CHECKOBJECTCLASS="YES" CHECKOBJECTTYPE="YES">Business Process Automation Software</AMSETTEXT>

<AMMOUSEMOVEOBJECT WINDOWTITLE="Google - Windows Internet Explorer" OBJECTNAME="Google Search" OBJECTCLASS="Internet Explorer_Server" OBJECTTYPE="PushButton" CHECKOBJECTNAME="YES" CHECKOBJECTCLASS="YES" CHECKOBJECTTYPE="YES" />

<AMMOUSECLICK />

 

↑ Top of Page