heres a script i found on the forum awhile ago, forgot who wrote it. all credit goes hit him/her.
Code:
;BETA ! ok, works, but still...
#SingleInstance, Force
GroupAdd, RenameWindows, ahk_class CabinetWClass
GroupAdd, RenameWindows, ahk_class ExploreWClass
GroupAdd, RenameWindows, ahk_class Progman
GroupAdd, RenameWindows, ahk_class #32770
GroupAdd, RenameWindows, ahk_class WorkerW
#IfWinActive ahk_group RenameWindows
~^F2::GoSub,Toggle_HiddenFiles_Display
#IfWinActive
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
ControlGetFocus, OutputVar, A
if (OutputVar<>"SysListView321")
{
ControlGet, hwndlistview, HWND,, SysListView321, A
ControlFocus , , ahk_id %hwndlistview%
Sleep, 119
Send, {F5}
ControlFocus ,%OutputVar%
Return
}
Sleep, 119
Send, {F5}
Send, {AppsKey}e
Return