Sign in to follow this  
Followers 0
Valuater

for... next question

3 posts in this topic

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

Share this post


Link to post
Share on other sites



$Start_1 should be $Start_[1] same for 2 and 3


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites

$Start_1 should be $Start_[1] same for 2 and 3

<{POST_SNAPBACK}>

thanks Ejoc

NEWHeader1.png

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  
Followers 0