COChOnOu Posted August 30, 2006 Posted August 30, 2006 Hello, I discovered AutoIt yesterday and i'm sure I'll love it I'm trying to make a script that create and destroy some controls when i'm cliking a button but is there a way to get the ID of a control ? here is the way i'd like it works : i have a variable where a put the ID of the control i just created then when i click on a button, it destroy the control that the id is in my variable is it possible ?
Daniel W. Posted August 30, 2006 Posted August 30, 2006 GuiCreate("") $Button = GUictrlcreatebutton("X", 10 , 10) $X = GuictrlcreateButton("Y", 30, 10) Guisetstate() Do $msg = GuiGetMsg() If $msg = $Button Then Guictrldelete( $X ) Endif Until $msg = -3 --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]
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