KeyPress "1", 1
KeyPress "2", 1
KeyPress "3", 1
KeyPress "4", 1
KeyPress "5", 1
KeyPress "6", 1
KeyPress "7", 1
KeyPress "8", 1
KeyPress "9", 1
然后把启动快捷键设置成q键就行了
把楼上的改了一下,就可以次次按F10了。启动一次即可
do
Rem 重复
K=WaitKey()
If K=81 Then//81是Q键的按键码
KeyPress "1", 1
KeyPress "2", 1
KeyPress "3", 1
KeyPress "4", 1
KeyPress "5", 1
KeyPress "6", 1
KeyPress "7", 1
KeyPress "8", 1
KeyPress "9", 1
//没有10键
Else
Goto 重复
End If
loop
Rem 重复
K=WaitKey()
If K=81 Then//81是Q键的按键码
KeyPress "1", 1
KeyPress "2", 1
KeyPress "3", 1
KeyPress "4", 1
KeyPress "5", 1
KeyPress "6", 1
KeyPress "7", 1
KeyPress "8", 1
KeyPress "9", 1
//没有10键
Else
Goto 重复
End If