nelmendorf 0 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 Share this post Link to post Share on other sites
dufran3 0 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 Share this post Link to post Share on other sites
nelmendorf 0 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. Share this post Link to post Share on other sites