按键精灵9后台按键,求大神写个代码
发布网友
发布时间:2024-10-24 02:33
我来回答
共1个回答
热心网友
时间:2024-11-06 07:03
鼠标指向游戏后启动脚本,后台无限循环执行F10 空格 X X X X X X,未设置每个按键的延迟时间,如需要的延迟时间,可自行添加:
Dim hwnd
hwnd = Plugin.window.MousePoint()
dely 200
Do
Call Plugin.Bkgnd.KeyPress(Hwnd, 121)
Call Plugin.Bkgnd.KeyPress(Hwnd, 32)
Call Plugin.Bkgnd.KeyPress(Hwnd, 88)
Call Plugin.Bkgnd.KeyPress(Hwnd, 88)
Call Plugin.Bkgnd.KeyPress(Hwnd, 88)
Call Plugin.Bkgnd.KeyPress(Hwnd, 88)
Call Plugin.Bkgnd.KeyPress(Hwnd, 88)
Call Plugin.Bkgnd.KeyPress(Hwnd, 88)
Loop