/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * Disclaimer: This file is being given as an example for automating Registry Related tasks through AutoHotkey Script. You may run this file "ONLY" at your own risk. * * * * * * * * * * * * * * * * * * * * * * * * * * * * File Name : Toggle_Hidden_Files_View.ahk Download : http://file.autohotkey.net/goyyah/Tips-N-Tricks/Other/Toggle_Hidden_Files_View.ahk SnapShot : This Script does not use a GUI. Posted in : http://www.autohotkey.com/forum/viewtopic.php?p=53740#53740 Main Title : Windows Explorer Automation Sub Title : Toggle Hidden Files View Description : A Hotkey Utility that checks whether Current window is "Windows Explorer" and Toggles between "Hide" & "Show" of Hidden Files. Author : A.N.Suresh Kumar aka "Goyyah" Email : arian.suresh@gmail.com Created : 2006-03-19 Modified : 2006-03-23 Scripted in : AutoHotkey, www.autohotkey.com */ #F2::GoSub,CheckActiveWindow CheckActiveWindow: ID := WinExist("A") WinGetClass,Class, ahk_id %ID% WClasses := "CabinetWClass ExploreWClass" IfInString, WClasses, %Class% GoSub, Toggle_HiddenFiles_Display Return Toggle_HiddenFiles_Display: RootKey = HKEY_CURRENT_USER SubKey = Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced RegRead, HiddenFiles_Status, % RootKey, % SubKey, Hidden 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