0.5秒内,按一下home依然是home,按两下隐藏桌面图标,按三下打开指定网页,请根据自己需求修改。
~Home::
{
if control_presses > 0
{
control_presses += 1
return
}
control_presses = 1
SetTimer, Keycontrol, -500
return
Keycontrol:
if control_presses = 1
{
control_presses = 0
}
else if control_presses = 2
{
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%
}
else if control_presses > 2
{
run www.baidu.com
}
control_presses = 0
return
}
这个有意思