Created
September 30, 2014 16:30
-
-
Save dufferzafar/9b8760ed231a879c92a9 to your computer and use it in GitHub Desktop.
Hide Private Mozilla Windows (like when your boss is around)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoTrayIcon | |
#SingleInstance, Force | |
SetTitleMatchMode, 2 | |
PID := WinExist("Mozilla Firefox (Private Browsing)") | |
Hidden := 0 | |
#h:: | |
If (Hidden) | |
WinShow, ahk_id %PID% | |
Else | |
WinHide, ahk_id %PID% | |
Hidden := Not Hidden | |
Return | |
Restore: | |
WinShow, ahk_id %PID% | |
ExitApp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment