rojiblanco Posted October 1, 2008 Share Posted October 1, 2008 i want to create a main GUI, when click a button on this GUI ,the program will display a another GUI(called childGui),after some operators, i click a button on childGui to switch to main GUI(and childGui willbe close) but my program cant do it.What's function in AutoIT which can do it? Thanks alot Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 1, 2008 Share Posted October 1, 2008 Look in the helpfile and search. There have been a lot of threads on this very topic. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
rojiblanco Posted October 1, 2008 Author Share Posted October 1, 2008 thanks i have been solution Link to comment Share on other sites More sharing options...
AlmarM Posted October 1, 2008 Share Posted October 1, 2008 Hello, $GUI = GUICreate("MainGUI", 200, 200, -1, -1) $OpenChild = GUICtrlCreateButton("Open", 65, 75, 70) GUISetState() While 1 $nMsg = GUIGetMsg() Select Case $nMsg = -3 ; $GUI_EVENT_CLOSE Exit Case $nMsg = $OpenChild _MyFunc() EndSelect WEnd Func _MyFunc() $GUI2 = GUICreate("ChildGUI", 200, 200, 300, 300) GUISetState() While 2 $nMsg2 = GUIGetMsg() Select Case $nMsg2 = -3 ; $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete($GUI2) EndFunc Is this helpfull? AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. 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