功能:空格键循环代替12345,第一次按住空格等同按住“1”,抬起空格等同抬起“1”,第二次按住空格等同按住“2”·········依次循环
用途:不明。。。。。帮群友写的
Part1:实现基本功能,但是在每轮循环结束后卡顿一次
n:=0
~Space::
n+=1
if n<6
{
while (GetKeyState("Space","p"))
{
Send {%n% down}
}
Send {%n% up}
}
else n:=0
return
Part2:解决了Part1中的卡顿问题
n:=0
~Space::
n+=1
if n<6
{
while (GetKeyState("Space","p"))
{
Send {%n% down}
}
Send {%n% up}
}
else {n:=1
while (GetKeyState("Space","p"))
{
Send {1 down}
}
Send {1 up}
}
return