MouseClickBtn

Clicks on the specified button control.

Syntax:

MouseClickBtn(parent-windowname, child-windowname, button-text)

Parameters:

(s) parent-windowname the initial part of, or an entire parent window name.

(s) child-windowname the initial part or, or an entire child window name.

(s) button-text text specifying a button control.

Returns:

(i)  @TRUE on success.

 

This function clicks on the pushbutton, radio button, or checkbox whose text is specified by "button-text".

If the button is located within a top-level window, specify the window name in "parent-windowname" and specify a blank string ("") for "child-windowname".

If the button is located within a child window, specify the top-level window name in "parent-windowname" and the child window name in "child-windowname".

 

Example:


SendMenusTo ("Exploring", "Tools | Map Network Drive")
TimeDelay(1)
;Click Reconnect at logon button
MouseClickBtn("Map Network Drive", "", "Reconnect at logon")
Message("MouseClickBtn","Reconnect at logon button clicked")
See Also:

MouseClick, MouseMove, MouseInfo, SendKey