esullivan Posted June 29, 2015 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!
reb Posted June 29, 2015 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
JohnOne Posted June 29, 2015 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.
water Posted June 29, 2015 Posted June 29, 2015 The wiki has a tutorial about how to handle multiple GUIs. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
esullivan Posted June 29, 2015 Author 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
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