Skip to content

Instantly share code, notes, and snippets.

@Phoenix616
Last active May 20, 2018 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phoenix616/bd226a63fb159a1aedc6a9476c9e4bb7 to your computer and use it in GitHub Desktop.
Save Phoenix616/bd226a63fb159a1aedc6a9476c9e4bb7 to your computer and use it in GitHub Desktop.
Small AutoHotkey script to toggle the display of the icon on the desktop. (Default shortcut is Win+Y, tested on Windows 7)
#y::
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment