Code: Select all
F1::
Control, Show,, SysListView321, ahk_class Progman
Pause
Control, Hide,, SysListView321, ahk_class Progman
UnPause
return
how can i make this toggle with one button using autohotkey programing language
Code: Select all
F1::
Control, Show,, SysListView321, ahk_class Progman
Pause
Control, Hide,, SysListView321, ahk_class Progman
UnPause
return
Code: Select all
#NoEnv
#Warn
#SingleInstance, Force
F1::DesktopIcons()
DesktopIcons(Show:=-1, hWnd:=0) { ; By SKAN on D35D @ tiny.cc/desktopicons
If ! hWnd := DllCall("GetWindow", "Ptr",WinExist("ahk_class Progman"), "UInt",5, "Ptr")
hWnd := DllCall("GetWindow", "Ptr",WinExist("ahk_class WorkerW"), "UInt",5, "Ptr")
If DllCall("IsWindowVisible", "Ptr",DllCall("GetWindow","Ptr",hWnd, "UInt",5, "Ptr")) != Show
DllCall("SendMessage","Ptr",hWnd, "Ptr",0x111, "Ptr",0x7402, "Ptr",0)
}