Jump to content
Sign in to follow this  

Get the ID of a control without the "window info"

Recommended Posts


I discovered AutoIt yesterday and i'm sure I'll love it :P

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 ?

Share this post

Link to post
Share on other sites

$Button = GUictrlcreatebutton("X", 10 , 10)
$X = GuictrlcreateButton("Y", 30, 10)

$msg = GuiGetMsg()
If $msg = $Button Then
Guictrldelete( $X )
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]

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  

  • Create New...