
For example, the Task Manager is one of the most important windows on the operating system, but who wants to press Ctrl + Shift + Esc each and every time you do it? The default keyboard shortcuts in Windows are all well and good, but maybe they’re not quite comfortable for you. The above script uses Ctrl + F2 to toggle the hidden file view, but you can change that to whatever you want by swapping out that ^F2 right at the start of the script. If HiddenFiles_Status = 2 RegWrite, REG_DWORD, % RootKey, % SubKey, Hidden, 1 else RegWrite, REG_DWORD, % RootKey, % SubKey, Hidden, 2 PostMessage, 0x111, 41504, ahk_id %ID% Return

RegRead, HiddenFiles_Status, % RootKey, % SubKey, Hidden SubKey = Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced

WClasses := "CabinetWClass ExploreWClass" IfInString, WClasses, %Class% GoSub, Toggle_HiddenFiles_Display ID := WinExist ( "A" ) WinGetClass ,Class, ahk_id %ID%
