Sign in to follow this  
Followers 0
JustinReno

GuiCtrl Coords

6 posts in this topic

I was wondering, is there a function to get the coordinates of a GUICtrl? I looked in the help file and nothing helped.

Share this post


Link to post
Share on other sites



Elaborate further please.

As in, you have made a GUI, and want the co-ordinates of a button on it?

OR

You have a GUI of another app, and want the co-ordinates of a control on it?

If its the first one, the Co-Ords will be in your code. Not sure of any other way.

If its the second, You can use the Au3 Active Window Info tool to find out, just place your cursor on it, and look at the Mouse Details section for its X and Y Co-Ords.

Or is it something else you are after?

Share this post


Link to post
Share on other sites

Thanks for the reply BUT:

I want the coordinates of a ctrl like a button on my app. Without using the info tool, or pre defined coordinates. I want it to find the current coordinates of the ctrl and click it, the app is going to be used on different computers with without screen resolutions. Please help!!!!

Share this post


Link to post
Share on other sites
THANK YOU!!!!

Share this post


Link to post
Share on other sites

Hi,

What if I want to find coordinates of a COM object on a form? I tried it and that doesn't work.

$excel_pos_regu = ControlGetPos("","",$allocation_bulk_reguacc_excel)

Thanks,

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