Jump to content
Sign in to follow this  

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)



GUICtrlCreateButton ("Next", 10, 30, 50)

GUICtrlCreateButton ( "Exit", 0, -1)

GUISetState ()

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop


Share this post

Link to post
Share on other sites

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()

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...