Sign in to follow this  
Followers 0
gbfan10

Could I get help with controlclick syntax?

3 posts in this topic

I am trying to get controlclick to click the 4th tab on a menu. I have an ID 12320 and control click coords of 194,13

I am having a hard time getting them into the correct syntax for autoit. here is what I have tried..

;ControlClick("Microsoft Exchange Server", "", "194, 9")

;ControlClick("[class:12320; instance:4]"

;ControlClick("[iD:12320]"[194,[13]])

The help file shows this ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] )

Does that mean i repalce the text "controlID" with the actual control ID # 12320 or do I use the text "controlID:1230"?

Share this post


Link to post
Share on other sites



Welcome to the forum.

You cannot skip parameters:

ControlClick("Microsoft Exchange Server", "", "194, 9")

ControlClick ( "title", "text", controlID, button, clicks, x, y)

You skipped the ones that I marked in red to get to the coordinates.

If you copy/paste/post the contents of the AutoIt Window Info tool's control tab - I'm sure that someone will stop by and help you formulate the correct syntax for your control click. You can also check the return from controlclick via a consolewrite or msgbox to see if AutoIt found the Control as you specified it.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0