|
|
SetKeyDelay, 0
SetMouseDelay, 0
yaoshui:=0
$p::
yaoshui:=1-yaoshui ;切换开关状态
if(yaoshui=0)
{
SetTimer, yaoshui1, off
SetTimer, yaoshui2, off
SetTimer, yaoshui3, off
SetTimer, yaoshui4, off
SetTimer, yaoshui5, off
}
else
{
SetTimer, yaoshui1, 2000
SetTimer, yaoshui2, 3000
SetTimer, yaoshui3, 4000
SetTimer, yaoshui4, 5000
SetTimer, yaoshui5, 6000
}
return
yaoshui1:
Send 1
return
yaoshui2:
Send 2
return
yaoshui3:
Send 3
return
yaoshui4:
Send 4
return
yaoshui5:
Send 5
return
代码是这样 哈哈 才发现是有人已经给你写过了 献丑了 按P键开关 也可以改成别的 那个2000是毫秒值的延时 |
|