Valuater Posted April 6, 2007 Share Posted April 6, 2007 To expand on Kickassjoe's post, I wrote up this quick test script. #include <GUIConstants.au3> $gui = GUICreate('', 200, 200) $bt = GUICtrlCreateButton('Click me', 0, 0, 200, 20) GUICtrlCreateButton('No, click me', 0, 20, 200, 20) GUICtrlCreateButton('No, me!', 0, 40, 200, 20) GUICtrlCreateButton('Screw you, click me!', 0, 60, 200, 20) $btlast = GUICtrlCreateButton('Crap on that, I''m the best, click me', 0, 80, 200, 20) GUISetState() While 1 $gm = GUIGetMsg() Switch $gm Case $bt to $btlast MsgBox(0,'Clicked', GUICtrlRead($gm)) Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd I'm sure that demonstrates well enough what you could do. Wow!!~, New approach to me Nice... Saunders!! 8) Link to comment Share on other sites More sharing options...
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