Jump to content
Sign in to follow this  
Vicks

Window Hider Pro early stage

Recommended Posts

well i made a quick gui-less script, took me less then a minute but it's useful, i plan make more of them with a GUI with more advance options such as telling certain windows to hide and winkiller which will exit the current window or windows, great for kids :D to hide stuff from paents which i really don't need but oh well, and pretty easy to use

#NoTrayIcon
HotKeySet("{F1}", "MinimizeAll")
HotKeySet("{F2}" , "Showall")
HotKeySet("{Esc}" , "ForceExit")

While 1
    Sleep(1)
    WEnd

Func MinimizeAll()
    WinMinimizeAll()
EndFunc


Func Showall()
WinMinimizeAllUndo()
EndFunc

Func ForceExit()
    Exit
    EndFunc

edited: wow this script make me feel like a noob again which i still am in auto it here and there, but it is pure useful

Edited by Vicks

Share this post


Link to post
Share on other sites

It is a script that will come useful sometimes. lol

one thing:

don't use F1 as a hotkey, programs use that as a help hotkey. so if u have a window open, and press f1, it is going to open the help file...

I was gonna say that :D

Someone released one that could have 2 seperate windows, minimize/maximize them seperately. They were sent to the sys tray.

Share this post


Link to post
Share on other sites

Hey! I've been working on something similar, but this one hides the windows after you've selected which windows you'd like hidden.

http://www.autoitscript.com/forum/index.php?showtopic=28959

I also have another program that has hotkeys bound to hide windows and mute sound.

#notrayicon
Global $hotkeys
HotKeySet("+!z", "Safe")
HotKeySet("5", "Volume")
HotKeySet("{NUMPADSUB}", "Kill")

While 1
    sleep(100)
WEnd

Func Kill()
    Exit
EndFunc

Func Volume(); Volume for music
    SoundSetWaveVolume(0)
    WinSetState("Gmail -", "", @SW_MINIMIZE)
    WinSetState("Yahoo", "", @SW_MINIMIZE)
    WinSetState("http://", "", @SW_MINIMIZE)
    WinSetState("http://", "", @SW_MINIMIZE)
    WinSetState("http://", "", @SW_MINIMIZE)
    WinSetState("http://", "", @SW_MINIMIZE)
    WinSetState("Game", "", @SW_MINIMIZE)
    WinSetState("Gmail -", "", @SW_HIDE)
    WinSetState("Yahoo", "", @SW_HIDE)
    WinSetState("Game", "", @SW_HIDE)
    WinSetState("http://", "", @SW_HIDE)
    WinSetState("http://", "", @SW_HIDE)
    WinSetState("http://", "", @SW_HIDE)
    WinSetState("http://", "", @SW_HIDE)
EndFunc

Func Safe()
    SoundSetWaveVolume(100)
    WinSetState("Parcel", "", @SW_SHOW)
    WinSetState("Gmail -", "", @SW_SHOW)
    WinSetState("Yahoo", "", @SW_SHOW)
    WinSetState("http://", "", @SW_SHOW)
    WinSetState("http://", "", @SW_SHOW)
    WinSetState("http://", "", @SW_SHOW)
    WinSetState("http://", "", @SW_SHOW)
    WinSetState("Game", "", @SW_SHOW)
EndFunc

Eventually, I'm hoping to combine the two so that one would be able to select which windows to be hidden, then have that command bound to a hotkey.

Edited by Minion

Share this post


Link to post
Share on other sites

Not to be negative about your script, but isn't this the same as win+D?

oh at first i didn't know what you mean't i didn't know about plus win+d but thanks, it's also neat having a script to do it as well Edited by Vicks

Share this post


Link to post
Share on other sites

Hey! I've been working on something similar, but this one hides the windows after you've selected which windows you'd like hidden.

http://www.autoitscript.com/forum/index.php?showtopic=28959

I also have another program that has hotkeys bound to hide windows and mute sound.

#notrayicon
Global $hotkeys
HotKeySet("+!z", "Safe")
HotKeySet("5", "Volume")
HotKeySet("{NUMPADSUB}", "Kill")

While 1
    sleep(100)
WEnd

Func Kill()
    Exit
EndFunc

Func Volume(); Volume for music
    SoundSetWaveVolume(0)
    WinSetState("Gmail -", "", @SW_MINIMIZE)
    WinSetState("Yahoo", "", @SW_MINIMIZE)
    WinSetState("http://", "", @SW_MINIMIZE)
    WinSetState("http://", "", @SW_MINIMIZE)
    WinSetState("http://", "", @SW_MINIMIZE)
    WinSetState("http://", "", @SW_MINIMIZE)
    WinSetState("Game", "", @SW_MINIMIZE)
    WinSetState("Gmail -", "", @SW_HIDE)
    WinSetState("Yahoo", "", @SW_HIDE)
    WinSetState("Game", "", @SW_HIDE)
    WinSetState("http://", "", @SW_HIDE)
    WinSetState("http://", "", @SW_HIDE)
    WinSetState("http://", "", @SW_HIDE)
    WinSetState("http://", "", @SW_HIDE)
EndFunc

Func Safe()
    SoundSetWaveVolume(100)
    WinSetState("Parcel", "", @SW_SHOW)
    WinSetState("Gmail -", "", @SW_SHOW)
    WinSetState("Yahoo", "", @SW_SHOW)
    WinSetState("http://", "", @SW_SHOW)
    WinSetState("http://", "", @SW_SHOW)
    WinSetState("http://", "", @SW_SHOW)
    WinSetState("http://", "", @SW_SHOW)
    WinSetState("Game", "", @SW_SHOW)
EndFunc

Eventually, I'm hoping to combine the two so that one would be able to select which windows to be hidden, then have that command bound to a hotkey.

yes but this should open up in a gui because when you compile it you can't set the windows no more

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  

×
×
  • Create New...