Jump to content
Sign in to follow this  
AoRaToS

Child windows help

Recommended Posts

AoRaToS

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.8.8 [30/09/2015]

Download Here

s!mpL3

Share this post


Link to post
Share on other sites
Danny35d

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

Share this post


Link to post
Share on other sites
AoRaToS

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.8.8 [30/09/2015]

Download Here

s!mpL3

Share this post


Link to post
Share on other sites
youknowwho4eva

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

Share this post


Link to post
Share on other sites
AoRaToS

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.8.8 [30/09/2015]

Download Here

s!mpL3

Share this post


Link to post
Share on other sites
AoRaToS

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.8.8 [30/09/2015]

Download Here

s!mpL3

Share this post


Link to post
Share on other sites
AdmiralAlkex

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×