sandman Posted August 22, 2007 Share Posted August 22, 2007 I have a function that will create a label, and one of the parameters is the handle to the GUI. How can I make sure that the created control is attached to the GUI specified? I haven't been able to find anything helpful in the helpfile, and the darn 3 word search minimum really gets at you sometimes. [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 22, 2007 Moderators Share Posted August 22, 2007 If it's an external gui, then look up AnyGUI.au3 ... if it's your own GUI... you have me confused!! ... but you could always try ControlCommand + IsVisible or IsEnabled I suppose. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
sandman Posted August 22, 2007 Author Share Posted August 22, 2007 It's for my own GUI... but what I mean is like this: Imagine your script is running two seperate GUIs. I know usually to attach a control to a GUI, you just put it right under the GUICreate()... but how do you specify which GUI to put a control in? There must be something out there, otherwise in one script or another someone's buttons they made in a loop run after both GUI's opened would end up in the wrong one. [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 23, 2007 Moderators Share Posted August 23, 2007 It's for my own GUI... but what I mean is like this: Imagine your script is running two seperate GUIs. I know usually to attach a control to a GUI, you just put it right under the GUICreate()... but how do you specify which GUI to put a control in? There must be something out there, otherwise in one script or another someone's buttons they made in a loop run after both GUI's opened would end up in the wrong one.Each GUI created returns a handle, take a look at the AnyGUI I've mentioned, and you'll find your answers. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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