Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Window Hiding/Showing Script by Gerrard Lukacs
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- #Warn ; Recommended for catching common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- global window_ids := []
- ; Ctrl + Windows Key + Down
- ; Hide active window, and remember it
- #^Down::
- WinGet win_id, ID, A
- WinHide ahk_id %win_id%
- window_ids.Insert(win_id)
- Return
- ; Ctrl + Windows Key + Up
- ; Show all windows hidden during this session
- #^Up::
- for index, win_id in window_ids
- {
- WinShow ahk_id %win_id%
- }
- window_ids := []
- Return
- ; Ctrl + Shift + Windows Key + Up
- ; Show literally all windows - even those which are meant to stay hidden
- ; ... NEVER ACTUALLY USE THIS.
- ; #^+Up::
- ; DetectHiddenWindows On
- ; WinGet ids, List
- ; loop %ids%
- ; {
- ; win_id := ids%A_Index%
- ; WinShow ahk_id %win_id%
- ; }
- ; Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement