hwnd = Plugin.Window.MousePoint()
Call Plugin.Window.SendKeyPress(hwnd,70)
Delay 1000
Call Plugin.Window.SendKeyPress(hwnd,39)
Delay 1000
Call Plugin.Window.SendKeyPress(hwnd,49)
Rem a
Delay 1000
For 15
Call Plugin.Window.SendKeyPress(hwnd,70)
Delay 1000
Next
Call Plugin.Window.SendKeyPress(hwnd,49)
Goto a
我已经把脚本给你写好了,你复制到按键精灵8的脚本里就可以用了,在游戏窗口置顶的状态下,按下脚本启动快捷键就能够执行:
//声明变量
Dim i, i0, i1, i2
i0 = 0
i1 = 0
i2 = 0
//获取置顶窗口的句柄
Hwnd = Plugin.Window.Foreground()
//开局按下Q键
Call Plugin.Bkgnd.KeyPress(Hwnd, 81)
//执行一遍所有技能
//按键数字“1”
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
//按键数字“2”
Call Plugin.Bkgnd.KeyPress(Hwnd, 50)
//按键“F”
Call Plugin.Bkgnd.KeyPress(Hwnd, 70)
//按键“E”
Call Plugin.Bkgnd.KeyPress(Hwnd, 69)
//按键“R”
Call Plugin.Bkgnd.KeyPress(Hwnd, 82)
//以下为无限循环内容,直到按下中止键
i = 0
while i < 0
//每间隔1秒执行的操作
Delay 1000
//按键“F”
Call Plugin.Bkgnd.KeyPress(Hwnd, 70)
Delay 100
//按键“D”
Call Plugin.Bkgnd.KeyPress(Hwnd, 68)
Delay 100
//按键“TAB”
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Delay 100
//四个计数器
i = i + 1
i0 = i0 + 1
i1 = i1 + 1
i2 = i2 + 1
If i = 5 Then
//每5秒执行的动作,按键“E”
Call Plugin.Bkgnd.KeyPress(Hwnd, 69)
//每5秒按下Q键
Call Plugin.Bkgnd.KeyPress(Hwnd, 81)
//计数器归零
i = 0
ElseIf i0 = 10 Then
//每10秒执行的动作,按键“R”
Call Plugin.Bkgnd.KeyPress(Hwnd, 82)
//计数器归零
i0 = 0
ElseIf i1 = 18 Then
//每18秒执行的动作,按键“1”
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
//计数器归零
i1 = 0
ElseIf i2 = 23 Then
//每23秒执行的动作,按键“2”
Call Plugin.Bkgnd.KeyPress(Hwnd, 50)
//计数器归零
i2 = 0
End If
Wend