Jump to content

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


COChOnOu
 Share

Recommended Posts

Hello,

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 ?

Link to comment
Share on other sites

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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...