谁帮写个按键精灵脚本

来源:百度知道 编辑:UC知道 时间:2024/07/06 17:53:38
f1~f8同时按 2秒一次

F1-F8同时按?有点疯狂,我首先要声明一下,按键精灵不可能做到绝对的同时按键,所以这几个键是会有少许时差的,但经过我的测试,现在用多线程功能来做,时差是最少的,脚本如下:
BeginThread "Thread1"
BeginThread "Thread2"
BeginThread "Thread3"
BeginThread "Thread4"
BeginThread "Thread5"
BeginThread "Thread6"
BeginThread "Thread7"
BeginThread "Thread8"
Sub Thread1
KeyPress 112,1
Delay 2000
Gosub Thread1
Return
Sub Thread2
KeyPress 113,1
Delay 2000
Gosub Thread2
Return
Sub Thread3
KeyPress 114,1
Delay 2000
Gosub Thread3
Return
Sub Thread4
KeyPress 115,1
Delay 2000
Gosub Thread4
Return
Sub Thread5
KeyPress 116,1
Delay 2000
Gosub Thread5
Return
Sub Thread6
KeyPress 117,1
Delay 2000
Gosub Thread6
Return
Sub Thread7
KeyPre