Jump to content

How to get a next button in custom GUI to go to next screen


Recommended Posts

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

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