esullivan Posted June 29, 2015 Share Posted June 29, 2015 I have search and have not had much luck figuring this out. It's probably more complicated then I want but.I am using KODA to create some GUIs, The first GUI will bring up 3 options (the third closing the script). The first two, will open another form each. Per KODA, after the form creation this is what I have:While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $cmdExit Case $Pic1 Case $Pic2 EndSwitch WEndI figured out that under case is what happens when I click on what I define. I can create a function that run code that creates the other forms I need.The problem is once I close the form with DeleteGUI, it won't recreate it if I click on the button again to reopen the form.I thought maybe I could hide it? Not sure how to show it when the button is click, GUISetState(@SW_SHOW) controls the current form not others...yes?Thanks for any help! Link to comment Share on other sites More sharing options...
reb Posted June 29, 2015 Share Posted June 29, 2015 This might be of some use to you. local $MainWindow = GUICreate("Sample window") GUISetState(@SW_SHOW, $MainWindow) MEASURE TWICE - CUT ONCE Link to comment Share on other sites More sharing options...
JohnOne Posted June 29, 2015 Share Posted June 29, 2015 All you are showing us is a loop and a switch block.Show some runnable code which demonstrates your problem. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
water Posted June 29, 2015 Share Posted June 29, 2015 The wiki has a tutorial about how to handle multiple GUIs. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
esullivan Posted June 29, 2015 Author Share Posted June 29, 2015 Thanks guys.Sorry, I have decided to just do this in VB6. Old, yes, but I know it better Thanks for trying 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