按键精灵怎么设置“X”和“Z” 不间断按,“1”为间隔几秒按

就是X Z 延时100毫秒自动连发的同时 隔3秒按一次1
2025-03-10 01:43:53
推荐回答(2个)
回答1:

单线程方法:
While True
For i = 1 To 15 //代码循环5次大约3秒
KeyDown 88, 1
Delay 30
KeyUp 88, 1
Delay 70

KeyDown 90, 1
Delay 30
KeyUp 90, 1
Delay 70
//这里我不用KeyPress,是为了更准确控制时间
Next
KeyPress 48, 1
Wend

多线程方法:
BeginThread KeyPress_XZ()
Call KeyPress_1()

Sub KeyPress_XZ()
KeyPress 88, 1
Delay 100
KeyPress 90, 1
Delay 100
End Sub

Sub KeyPress_1()
KeyPress 48, 1
Delay 3000
End Sub

回答2:

最简单的方法就是有一个功能是 记录你鼠标键盘的 痕迹的,你点一下鼠标然后记录下来设置重复 就OK了