Sign in to follow this  
Followers 0
rambo3889

Hider-Unhider GUI

29 posts in this topic

#1 ·  Posted (edited)

I made a Gui to Hide and unhide windows

(Know that it isnt the best gui and that but just wanna share it)

The idea is from Nufflein805 in this Topic Topic

#Include <GuiList.au3>
#include <GUIConstants.au3>


GUICreate("Hide-Unhide gui", 300, 225)
$thelist = GUICtrlCreateList("", 20, 20, 250, 150)
$hide = GUICtrlCreateButton("Hide", 20, 190, 75, 25)
$update = GUICtrlCreateButton("Update", 108, 190, 75, 25)
$unhide = GUICtrlCreateButton("Unhide", 195, 190, 75, 25)
$infolabel = GUICtrlCreateLabel("", 20, 0, 250, 15)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Switch $msg
        
        Case $hide
            If GUICtrlRead($thelist) = "" Then
                MsgBox(0, "Hide", "Please select a item in the list to hide")
            Else
                WinSetState(GUICtrlRead($thelist), "", @SW_HIDE)
            EndIf
        Case $unhide
            If GUICtrlRead($thelist) = "" Then
                MsgBox(0, "unHide", "Please select a item in the list to unhide")
            Else
                WinSetState(GUICtrlRead($thelist), "", @SW_SHOW)
            EndIf
        Case $GUI_EVENT_CLOSE
            Exit
        Case $update
            add()
    EndSwitch
WEnd

Func add()
    $winlist = WinList()
    GUICtrlSetData($infolabel, "there was found " & $winlist[0][0] & "  windows")
    _GUICtrlListClear ($thelist)
    For $1 = 1 To $winlist[0][0]
        If $winlist[$1][0] = "" Then
;;
        Else
            _GUICtrlListAddItem ($thelist, $winlist[$1][0])
        EndIf
    Next
;;
EndFunc;==>add
Edited by rambo3889

My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites



nice.. :lmao: usefull to use on the school

Share this post


Link to post
Share on other sites

Yes that was 1 of the reason to i made it :lmao:


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

hehe.. :lmao:

Share this post


Link to post
Share on other sites

you should make so you have hotkeys too

Share this post


Link to post
Share on other sites

Too hide the gui or the window there have been selected


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

yes so you select the window you want to hide and then it hides both gui and window

Share this post


Link to post
Share on other sites

Update now the PGDW hide the gui and ALT+PGDN hide the selected item and the PGUP show the gui and ALT + PGUP show the selected window


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

okay looks nice

Share this post


Link to post
Share on other sites

Tyvm Liope


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

No problem :lmao:

Share this post


Link to post
Share on other sites

i get an error when i compile its error reading the file : GuiList.au3

how can i fix this?

Share this post


Link to post
Share on other sites

Have you the last beta???


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

funny, you actually changed my gui :lmao:

1. in your 1st post there are no hotkeys

2. i wanna see how you unhide a selected window with gui hidden o:)

3. how can you tell the state of a window?

4. the winlist() - thing is funny as well, because it returns all windows (even desktop and start ;)), but you can't hide every window

there definitely are loads of mistakes in your adapted version

i post my new script later on with some new functions, even though i'm not sure some1 needs it except for school (or maybe "work")

Share this post


Link to post
Share on other sites

funny, you actually changed my gui :lmao:

1. in your 1st post there are no hotkeys

2. i wanna see how you unhide a selected window with gui hidden :king:

3. how can you tell the state of a window?

4. the winlist() - thing is funny as well, because it returns all windows (even desktop and start ;)), but you can't hide every window

there definitely are loads of mistakes in your adapted version

i post my new script later on with some new functions, even though i'm not sure some1 needs it except for school (or maybe "work")

Would be gr8 if you post it Nuffilein o:)

Share this post


Link to post
Share on other sites

Just so you Nufflein some of the lines mayb is similar yous but id write it


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

Have you the last beta???

what do u mean do i have last beta?

Share this post


Link to post
Share on other sites

do have installed the lasted beta?


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

Share this post


Link to post
Share on other sites

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Thanks SmOke N


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! you’re the best in town Fight!

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  
Followers 0