nelmendorf Posted May 9, 2011 Share Posted May 9, 2011 Here is the start of my very first autoit using GUI's. I want to make a series of screens where the user has to input a bit of data, click next, and be presented with a new screen and either new choices or input boxes. I have the first screen the way I want it, but how do I program the next button so it moves to the next window (when I write it), also how do I program exit to do gui_event_close? I'm not new to autoit but I'm fresh on GUI interfaces. Any help is appreciated. ;Version .001 Switches I'm using Opt("GUIOnEventMode", 1) #include <GUIConstants.au3> GUICreate("Employee Lifecycle Process") GUICtrlCreateCombo ("Please select your name", 10,10) GUICtrlSetData(-1,"User1|User2|User3") Opt("GUICoordMode",2) GUICtrlCreateButton ("Next", 10, 30, 50) GUICtrlCreateButton ( "Exit", 0, -1) GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Link to comment Share on other sites More sharing options...
dufran3 Posted May 9, 2011 Share Posted May 9, 2011 I know in the past most users have suggested creating all your GUI windows( parent and child windows) at the beginning of the script and hide & show the ones that you need. GUISetOnEvent($GUI_EVENT_CLOSE, '_Terminate') Func _Terminate() Exit EndFunc Link to comment Share on other sites More sharing options...
nelmendorf Posted May 11, 2011 Author Share Posted May 11, 2011 Thanks for the help. I used that and a page I found on GUI's on the autoIT web help to figure it out. 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