allSystemsGo Posted July 8, 2013 Share Posted July 8, 2013 Whenever I call my child window, it appears behind the parent. I cannot access the window at all...it appears in my task bar but I am unable to bring it to the front. Any suggestions? Thanks! Link to comment Share on other sites More sharing options...
water Posted July 8, 2013 Share Posted July 8, 2013 Use "parent" parameter when you create the second GUI. So the new GUI will become a true child of the parent. 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...
allSystemsGo Posted July 8, 2013 Author Share Posted July 8, 2013 (edited) I believe I am doing that...heres a bit of my code... $main=GuiCreate("Catchy Title",500,300) ;; here is where the main (parent) window is createdGUICtrlCreateLabel("Global Settings",10,20) GUICtrlCreateLabel("Station Settings",285,20) $bEditGlobal=GuiCtrlCreateButton("Edit wnos.ini",10,50,100,30) $bEditMac=GuiCtrlCreateButton("Add New",315,50,100,30) $bAddMac=GuiCtrlCreateButton("Edit $mac.ini",315,90,100,30) GUISetState(@SW_SHOW) ;--------GUI is made!------------------------------ ;--------Here is where all the action happens------ While 1 $msg=GUIGetMsg() Select Case $msg=$GUI_EVENT_CLOSE ExitLoop Case $msg=$bEditGlobal;;; Then a bit later I create the child from a While Loop, which calls a separate function Call(editglobal()) GUISetState(@SW_DISABLE,$main) GUISetState(@SW_HIDE,$main) EndSelect Wend EndFunc $aEdit=GuiCreate("wnos.ini",350,500,$main) ;;;this is from the editGlobal() which creates the new GUI window Edited July 8, 2013 by allSystemsGo Link to comment Share on other sites More sharing options...
Solution water Posted July 8, 2013 Solution Share Posted July 8, 2013 Please check the help file. The parent handle has to be parameter 8. 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...
allSystemsGo Posted July 9, 2013 Author Share Posted July 9, 2013 Got it, thanks. Link to comment Share on other sites More sharing options...
water Posted July 9, 2013 Share Posted July 9, 2013 Now it works as desired? 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...
allSystemsGo Posted July 9, 2013 Author Share Posted July 9, 2013 Yes, it appears as it should. I have many more quirks to work out of it though. I am trying to make this part of the script a very simply text editor so that I do not have to call notepad...now trying to get it to be able to save any changes I made. Link to comment Share on other sites More sharing options...
water Posted July 9, 2013 Share Posted July 9, 2013 Did you search the forum for simple editors written in AutoIt? Maybe it is not necessary to reinvent the wheel? 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...
allSystemsGo Posted July 9, 2013 Author Share Posted July 9, 2013 I figured for this purpose it would be pretty simple. Basically just reads the same file into a box every time, and if changes are made a save button would erase the old file with the new. Nothing fancy. But I'll take a look. 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