Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^h:: ;Toggle visibility of hidden files with Ctrl+H. Keep system files hidden.
- RegRead, H, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden
- RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, ShowSuperHidden, 1
- HiddenFiles(H, (H = 0 ? "" : "System & ") "Hidden files")
- Return
- !h:: ;Toggle visibility of hidden files and system files with Alt+H.
- RegRead, H, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden
- RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, ShowSuperHidden, % (H = 2) ? 1 : 0
- HiddenFiles(H, "System & Hidden files")
- Return
- +h:: ;Toggle visibility of hidden files with Shift+H.
- RegRead, H, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden
- RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, ShowSuperHidden, 0
- HiddenFiles(H, (H = 2 ? "" : "System & ") "Hidden files")
- Return
- HiddenFiles(H, T) {
- RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, % (H = 2) ? 1 : 2
- for window in ComObjCreate("Shell.Application").Windows
- ControlSend, SysTreeView321, {f5}, % "ahk_id " window.hwnd
- ControlSend,, {f5}, Program Manager ahk_exe explorer.exe
- TrayTip, % T, % (H = 2) ? "Show" : "Hide", 1, 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement