按键精灵 每隔60秒自动按4键,无限循环,脚本怎么写?

下了个按键精灵,不会用,仙境幻想法师挂机自动唤醒技能,隔60秒按4键,无限循环,后台运行,请高手帮忙写个脚本,我不会....

第1个回答  2019-09-09
dim
hwnd
hwnd
=
plugin.window.mousepoint()
do
call
plugin.bkgnd.keypress(hwnd,
90)
delay
5000
loop
将鼠标移动到窗口内再启动即可
详细地描述一下,没反应?我在我的笔记本上还可以用的,多试几次。
第2个回答  2011-09-10
SetSimMode 1
Dim tim1
Dim hwnd
hwnd=Plugin.Window.MousePoint()
rem 开始
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
delay 1000
Call Plugin.Bkgnd.KeyPress(Hwnd, 50)
delay 1000
If DateDiff("s",tim1,now) >= 3600 Then
tim1=now
Call Plugin.Bkgnd.KeyPress(Hwnd, 51)
Delay 200
End if
goto 开始追问

试了下,好像不对,没反应

参考资料:百度一下

本回答被网友采纳
第3个回答  2011-09-14
for i=1 to 循环次数,你可以填一万次,呵呵
WScript.Sleep 60000
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "4"
Next
相似回答