有时候我们做教程或特殊情况下需要将桌面上密密麻麻的图标暂时隐藏,稍后又要让他显示,那能不能我们随心所欲得让他显示和隐藏呢?今天便给大家解决这一问题。
1、先下载安装[autohotkey],大约2M左右很小,官方下载地址:点击下载
![1639119854-6ba9e0b6890cc13 [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/22e27-a74ea-1639119854-6ba9e0b6890cc13.png)
![1639119867-70d267963f39265 [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/44545-c2e28-1639119867-70d267963f39265.png)
![1639119939-af5d330747004ec [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/77e91-d7685-1639119939-af5d330747004ec.png)
![1639119960-61a9a726c5756a4 [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/88897-5768d-1639119960-61a9a726c5756a4.png)
![1639119972-0ae2d96a87a8c07 [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/88f81-e37be-1639119972-0ae2d96a87a8c07.png)
![1639119984-b6836305679e794 [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/d0ec2-61759-1639119984-b6836305679e794.png)
2、制作脚本将下方的代码用文本文件保存为.ahk文件;
!q::
HideOrShowDesktopIcons()
return
HideOrShowDesktopIcons()
{
ControlGet, class, Hwnd,, SysListView321, ahk_class Progman
If class =
ControlGet, class, Hwnd,, SysListView321, ahk_class WorkerW
If DllCall(“IsWindowVisible”, UInt,class)
WinHide, ahk_id %class%
Else
WinShow, ahk_id %class%
}
![1639120141-1792a4835b818fe [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/ed407-4bf03-1639120141-1792a4835b818fe.png)
3、把后缀.txt改成.ahk
![1639120177-73abb8d46fd4807 [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/d6511-cfaa7-1639120177-73abb8d46fd4807.png)
4、双击文件打开,按快捷键ALT+Q,你会神奇的发现桌面的图标没了,在按一遍又回来了。
![1639120386-cb40551095eeb7f [教程] Windows 10上用热键 隐藏/显示桌面图标](https://qnwx.91taihua.com/2021/12/b4fc7-9c237-1639120386-cb40551095eeb7f.png)
