Click

Item Description

Use with:

Web and Windows

SecureLogin version:

All

Type:

Action

Windows Usage:

Usage 1

Usage 2

Click #Ctrl-ID [-rawflag] [-right] [X / Y]

Click X_coordinate Y_coordinate

Windows arguments:

#Ctrl-ID

[-raw]

[-right]

X_coordinate

Y_coordinate


Web usage:


Usage 1

Usage 2

The ID number of the control to be pressed.

Eliminates the mouse and sends a direct click.

Sends a right-mouse click. Use this argument only with the -raw flag.

Represents the horizontal coordinate relative to the client area of the application (not the screen).

Represents the vertical coordinate relative to the client area of the application (not relative to the screen).


Click number

Click #number

Web arguments:

#number


number

The pound or hash symbol followed by the sequential number of the button to be pressed. The number of the button is determined by the Web page layout. The first button (top to bottom, left to right) on the page is number 1, the second button on the page is number 2, and so on. Because of Web page layout and design, the sequential order of the buttons might not be obvious.

The sequential number of the button to be pressed. The number of the button is determined by the Web page layout. The first button on the page is number 1, the second button on the page is number 2, and so on. Because of Web page layout and design, the sequential order of the buttons might not be obvious.

Description:

When used with Windows applications, the Click command sends a click command to the specified #Ctrl-ID. If the button to be clicked does not have a control ID, use the Type \n command.

The -raw flag causes SecureLogin to bypass the mouse by emulating the mouse and sending a direct click message to the control. Using the -right flag with the -raw flag sends a right-click to the control. The -raw flag can be set if the button or control does not respond to the Click command.

Setting the #Ctrl-ID to 0 (zero) sends the Click command to the window that the script is running on.

X coordinate Y coordinate coordinates can also be set. The X coordinate Y coordinate coordinate is relative to the client area of the application, not the screen.

When used with Web, the click command takes a single argument, which is the sequential number on the page of the button to be pressed. Click #3 clicks the third button on the page. Keep in mind that, because of Web page layout and design, the sequential order of the buttons might not be obvious.

Syntax examples:

Click #1
Click #1 -raw -right
Click -x 12 -y 12

Example:

Dialog  
 Title "Login"
 Ctrl #1
EndDialog
Type $Username #1
Type $Password #2
Click #1