Jump to content

Hider-Unhider GUI


rambo3889
 Share

Recommended Posts

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!
Link to comment
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!
Link to comment
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")

Link to comment
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:)

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...