急求!按键精灵9 脚本,很简单按下F9 后连续按下2次F10 ,中间间隔1秒,无限重复!!!

Rem a
KeyPress "F9", 1
Delay 1000
KeyPress "F10", 1
Delay 1000
KeyPress "F10", 1
Delay 1000
Goto a
后,不能自动运行,按一下走1步

Rem a
KeyPress "F9", 1
Delay 1000
KeyPress "F10", 1
Delay 1000
KeyPress "F10", 1
Delay 1000
Goto a
复制到源文件里就行了追问

为什么执行后只按了1次F9 谢谢赐教

追答

因为你的启动热键是F10 自己改成其他的

追问

已经改了启动键 现在是按一下启动键,执行一个按键命令,不能连续执行
是按任意键他会执行下一步操作,不安不执行

追答

不会啊,我刚试了下 完全没问题

温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-12-07
Rem a
KeyPress "F9", 1
Delay 1000
KeyPress "F10", 1
Delay 1000
KeyPress "F10", 1
Delay 1000
Goto a

脚本本身没有错误
试试后台的
Hwnd = Plugin.Window.Foreground()
Rem a
Call Plugin.Bkgnd.KeyPress(Hwnd, 120)
Delay 1000
Call Plugin.Bkgnd.KeyPress(Hwnd, 121)
Delay 1000
Call Plugin.Bkgnd.KeyPress(Hwnd, 121)
Delay 1000
Goto a追问

还是一样,用在传奇3里的

追答

那就不知道你的什么情况了

第2个回答  2011-12-06
按键7

Rem 111
KeyPress 120,1
Delay 1000
KeyPress 121,1
Delay 1000
KeyPress 121,1
Goto 111