spytek_98 Posted August 5, 2004 Share Posted August 5, 2004 Is there a way to get the x, y, width and height of a control once the GUISetControl has been called? Ie Is there a function that could do something like this $width = GUIGetControlWidth("input 1")? If not, any workarounds would be great. Thanks Spy. Link to comment Share on other sites More sharing options...
this-is-me Posted August 5, 2004 Share Posted August 5, 2004 try ControlGetPos("Gui Title", "", "Button Text or classnamenn") it returns an array with the x, y, width and height. Who else would I be? Link to comment Share on other sites More sharing options...
CyberSlug Posted August 5, 2004 Share Posted August 5, 2004 (edited) http://www.autoitscript.com/forum/index.ph...&st=0&p=26051This very recent change might make it possible to use ControlCommands with the GUI reliably; I haven't had a chance to try yet. Edited August 5, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
spytek_98 Posted August 6, 2004 Author Share Posted August 6, 2004 http://www.autoitscript.com/forum/index.ph...&st=0&p=26051 This very recent change might make it possible to use ControlCommands with the GUI reliably; I haven't had a chance to try yet. <{POST_SNAPBACK}>Using the controlID approach works a charm in the latest beta build. 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