re-purpose script to use mouse click on empty desktop

Get help with using AutoHotkey and its commands and hotkeys
trevorlx
Posts: 1
Joined: 19 Mar 2018, 10:02

re-purpose script to use mouse click on empty desktop

19 Mar 2018, 10:33

I found a handy script to toggle desktop icons on and off in Windows 10. It works well except I would like to invoke the script by a double mouse click on the empty area of the desktop and/or taskbar. The spy utility identifies the desktop as ahk_class Progman. The taskbar is identified as ahk_class Shell_TrayWnd. Any suggestions?

Code: Select all

#F11::
ControlGet, HWND, Hwnd,, SysListView321, ahk_class Progman
 If HWND =
 ControlGet, HWND, Hwnd,, SysListView321, ahk_class WorkerW
 If DllCall("IsWindowVisible", UInt, HWND)
 WinHide, ahk_id %HWND%
 Else
 WinShow, ahk_id %HWND%
Return

Return to “Ask For Help”

Who is online

Users browsing this forum: afe, Albireo, Google [Bot], JoeWinograd, malcev, newbieforever, swagfag, tank and 28 guests