Input - Click mouse

Declaration

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

Related Topics

Description

Clicks the mouse according to the parameters specified.

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

Property
Type
Required
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 button - Click the left mouse button.

  • Middle (center) button - Click the center mouse button.

  • Right button - 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

Error Causes

On Error

example

NOTE: The sample AML code below can be copied and pasted directly into the Steps panel 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 />