Last active
August 29, 2015 14:00
-
-
Save uhziel/11322002 to your computer and use it in GitHub Desktop.
WLost(The lost function of Windows)
This file contains hidden or 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
| ; ^ ctrl ! alt # win | |
| ; super paste | |
| SetKeyDelay 30 | |
| #v::Send {raw}%clipboard% | |
| ; hide window | |
| #PgDn:: | |
| if (NumHiddenWindows = "") | |
| NumHiddenWindows:=0 | |
| NumHiddenWindows:=NumHiddenWindows+1 | |
| PreviousHiddenWindow := WinExist("A") | |
| HiddenWindows%NumHiddenWindows%:=PreviousHiddenWindow | |
| WinMinimize ahk_id %PreviousHiddenWindow% | |
| WinHide ahk_id %PreviousHiddenWindow% | |
| return | |
| ; show window | |
| #PgUp:: | |
| if (PreviousHiddenWindow <> "") | |
| { | |
| WinShow ahk_id %PreviousHiddenWindow% | |
| WinActivate ahk_id %PreviousHiddenWindow% | |
| NumHiddenWindows:=NumHiddenWindows - 1 | |
| PreviousHiddenWindow:=HiddenWindows%NumHiddenWindows% | |
| } | |
| return | |
| ; toggle the AlwaysOnTop of window | |
| #t::WinSet AlwaysOnTop, Toggle, A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment