Jump to content

Child windows help


AoRaToS
 Share

Recommended Posts

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

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

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...