按键精灵怎么怎么把脚本绑定窗口
我自己做的打怪脚本,请问怎么把他绑定窗口,就像简单游里边那些脚本一样,可以移开鼠标。我的脚本KeyPress"`",1KeyPress"Tab",1KeyPress"1"...
我自己做的打怪脚本,请问怎么把他绑定窗口,就像简单游里边那些脚本一样,可以移开鼠标。
我的脚本
KeyPress "`", 1
KeyPress "Tab", 1
KeyPress "1", 1
KeyPress "Tab", 1
KeyPress "2", 1
KeyPress "Tab", 1
KeyPress "3", 1
KeyPress "Tab", 1
KeyPress "4", 1
KeyPress "Tab", 1
KeyPress "5", 1
KeyPress "Tab", 1
KeyPress "6", 1
KeyPress "7", 1
KeyPress "Tab", 1
KeyPress "8", 1
KeyPress "`", 1
KeyPress "`", 1
KeyPress "`", 1
KeyPress "`", 1
KeyPress "`", 1 展开
我的脚本
KeyPress "`", 1
KeyPress "Tab", 1
KeyPress "1", 1
KeyPress "Tab", 1
KeyPress "2", 1
KeyPress "Tab", 1
KeyPress "3", 1
KeyPress "Tab", 1
KeyPress "4", 1
KeyPress "Tab", 1
KeyPress "5", 1
KeyPress "Tab", 1
KeyPress "6", 1
KeyPress "7", 1
KeyPress "Tab", 1
KeyPress "8", 1
KeyPress "`", 1
KeyPress "`", 1
KeyPress "`", 1
KeyPress "`", 1
KeyPress "`", 1 展开
展开全部
Do
Hwnd = Plugin.Window.MousePoint()
Loop Until Hwnd > 0
Do
Call Plugin.Bkgnd.KeyPress(Hwnd, 192)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 50)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 51)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 52)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 53)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 54)
Call Plugin.Bkgnd.KeyPress(Hwnd, 55)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 56)
For 5
Call Plugin.Bkgnd.KeyPress(Hwnd, 192)
Next
Loop
复制上面代码可达成,脚本启动前先将鼠标移动到游戏窗口内并且点击一次。等待脚本运行,脚本开始运行后鼠标可自由操作移动。
Hwnd = Plugin.Window.MousePoint()
Loop Until Hwnd > 0
Do
Call Plugin.Bkgnd.KeyPress(Hwnd, 192)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 49)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 50)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 51)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 52)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 53)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 54)
Call Plugin.Bkgnd.KeyPress(Hwnd, 55)
Call Plugin.Bkgnd.KeyPress(Hwnd, 9)
Call Plugin.Bkgnd.KeyPress(Hwnd, 56)
For 5
Call Plugin.Bkgnd.KeyPress(Hwnd, 192)
Next
Loop
复制上面代码可达成,脚本启动前先将鼠标移动到游戏窗口内并且点击一次。等待脚本运行,脚本开始运行后鼠标可自由操作移动。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询