JustinReno Posted September 30, 2007 Share Posted September 30, 2007 I was wondering, is there a function to get the coordinates of a GUICtrl? I looked in the help file and nothing helped. Link to comment Share on other sites More sharing options...
tAKTelapis Posted September 30, 2007 Share Posted September 30, 2007 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? Link to comment Share on other sites More sharing options...
JustinReno Posted September 30, 2007 Author Share Posted September 30, 2007 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!!!! Link to comment Share on other sites More sharing options...
GaryFrost Posted September 30, 2007 Share Posted September 30, 2007 ControlGetPos SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
JustinReno Posted September 30, 2007 Author Share Posted September 30, 2007 THANK YOU!!!! Link to comment Share on other sites More sharing options...
smahdi83 Posted October 29, 2007 Share Posted October 29, 2007 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, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now