Jump to content

for... next question


Recommended Posts

It appears to work correctly...but not!

heres the test GUI

#include <GUIConstants.au3>

Dim $Start_[4], $dis

GUICreate("my GUI")

    $Start_1 = GUICtrlCreateButton( "", 40, 50, 32, 32)
    $Start_2 = GUICtrlCreateButton( "", 100, 50, 32, 32)
    $Start_3 = GUICtrlCreateButton( "", 160, 50, 32, 32)
    
    for $dis = 1 to 3
    GUICtrlSetState($Start_[$dis], $GUI_DISABLE)
    MsgBox(0,"test", "$dis = " & $dis)
    Next

GUISetState()

While 1
        
        $Msg = GUIGetMsg()
        
        If $Msg = $Start_1 then Beep(100, 100)
        
        If $Msg = $GUI_EVENT_CLOSE Then Exit
        
        sleep(10)
    WEnd

I don't need this... but would I like to understand it

thx

8)

NEWHeader1.png

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...