按键精灵 同时多个循环

“1”每隔2秒要按一下,“5”每隔12秒要按一下,“8”每隔120秒要按一下
这个用按键精灵怎么写代码

多线程就可以了。代码如下:
//子程序
Sub KeyPress_Key(Key, t)
While True
KeyPress Key, 1
Delay t
Wend
End Sub
//线程开启
BeginThread KeyPress_Key(49, 2000)
BeginThread KeyPress_Key(53, 12000)
BeginThread KeyPress_Key(56, 120000)
温馨提示:答案为网友推荐,仅供参考
相似回答