AoRaToS Posted August 27, 2008 Share Posted August 27, 2008 I've made a program that consists of a main GUI (parent) and many child guis, my problem is I want to hide them all at once,until now I'v only managed to hide the main on, I believe I need some sort of window child count or a way to return their names or handles...I couldn't find something in the help file or by searchin here even if I think I had seen something once a while back... Here are the 2 processes I use a the moment: Func HideAPP() GUISetState(@SW_HIDE,$MainGUI) TraySetState(2) HotKeySet("^!s", "ShowApp") EndFunc Func ShowApp() GUISetState(@SW_SHOW,$MainGUI) TraySetState(1) EndFunc s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
Danny35d Posted August 27, 2008 Share Posted August 27, 2008 Take a look to this LINK it may give you some ideas. AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
AoRaToS Posted August 28, 2008 Author Share Posted August 28, 2008 Interesting, thanks for the answer, I took a look but I don't think it helps me...How can I hide parent window and all childs,there must be a simple way like some udf Get_WindowChilds or so... s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
youknowwho4eva Posted August 28, 2008 Share Posted August 28, 2008 what if you put a statement with each gui that if it is true they are hidden, if the statement becomes untrue they are shown? I'm not sure if this will help you, you'll still have to write out all that code, it sounds like your looking for a way that goes around all the script adding. Giggity Link to comment Share on other sites More sharing options...
AoRaToS Posted August 28, 2008 Author Share Posted August 28, 2008 The problem is I don't know the names of the childs, they are ip's and names so at the moment I press HIDE I want the main window to take the rest along with it and hide them :/ s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
AoRaToS Posted August 31, 2008 Author Share Posted August 31, 2008 BUMP!!!! Anyone able to help??If you close the parent window,it closes the childs (logical...) Is there a way to hide the childs along with the parent??? s!mpL3 LAN Messenger Current version 2.9.9.1 [04/07/2019] s!mpL3 LAN Messenger.zip s!mpL3 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 1, 2008 Share Posted September 1, 2008 Are you creating the child gui's with AutoIt? If so then it would be easiest to store the return from GuiCreate() in a array and then use a For-loop with GuiSetState(), everything is in the helpfile so it should be easy. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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