![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
游戏双开怎么能同时运行按键精灵
两个游戏账号角色执行一样的操作。设置如下,开始,按下1,3次,按下2,3次,按下3,3次,延迟1秒,结束,无限循环,跪求大神...
两个游戏账号角色执行一样的操作。设置如下,开始,按下1,3次,按下2,3次,按下3,3次,延迟1秒,结束,无限循环,跪求大神
展开
1个回答
展开全部
Do
A = WaitKey
If A = 90 Then
HwndZ = Plugin.Window.MousePoint()
ElseIf A = 88 Then
HwndX = Plugin.Window.MousePoint()
End If
Loop Until HwndZ > 0 and HwndX > 0
Do
Call Plugin.Bkgnd.KeyPress(HwndZ, 49)
Call Plugin.Bkgnd.KeyPress(Hwndx, 49)
Call Plugin.Bkgnd.KeyPress(HwndZ, 49)
Call Plugin.Bkgnd.KeyPress(Hwndx, 49)
Call Plugin.Bkgnd.KeyPress(HwndZ, 49)
Call Plugin.Bkgnd.KeyPress(Hwndx, 49)
Call Plugin.Bkgnd.KeyPress(HwndZ, 50)
Call Plugin.Bkgnd.KeyPress(Hwndx, 50)
Call Plugin.Bkgnd.KeyPress(HwndZ, 50)
Call Plugin.Bkgnd.KeyPress(Hwndx, 50)
Call Plugin.Bkgnd.KeyPress(HwndZ, 50)
Call Plugin.Bkgnd.KeyPress(Hwndx, 50)
Call Plugin.Bkgnd.KeyPress(HwndZ, 51)
Call Plugin.Bkgnd.KeyPress(Hwndx, 51)
Call Plugin.Bkgnd.KeyPress(HwndZ, 51)
Call Plugin.Bkgnd.KeyPress(Hwndx, 51)
Call Plugin.Bkgnd.KeyPress(HwndZ, 51)
Call Plugin.Bkgnd.KeyPress(Hwndx, 51)
Delay 1000
Loop
复制上面代码保存运行
注意事项:运行后用鼠标在第一个窗口点击一下然后按Z,然后点击第二个窗口按X。
A = WaitKey
If A = 90 Then
HwndZ = Plugin.Window.MousePoint()
ElseIf A = 88 Then
HwndX = Plugin.Window.MousePoint()
End If
Loop Until HwndZ > 0 and HwndX > 0
Do
Call Plugin.Bkgnd.KeyPress(HwndZ, 49)
Call Plugin.Bkgnd.KeyPress(Hwndx, 49)
Call Plugin.Bkgnd.KeyPress(HwndZ, 49)
Call Plugin.Bkgnd.KeyPress(Hwndx, 49)
Call Plugin.Bkgnd.KeyPress(HwndZ, 49)
Call Plugin.Bkgnd.KeyPress(Hwndx, 49)
Call Plugin.Bkgnd.KeyPress(HwndZ, 50)
Call Plugin.Bkgnd.KeyPress(Hwndx, 50)
Call Plugin.Bkgnd.KeyPress(HwndZ, 50)
Call Plugin.Bkgnd.KeyPress(Hwndx, 50)
Call Plugin.Bkgnd.KeyPress(HwndZ, 50)
Call Plugin.Bkgnd.KeyPress(Hwndx, 50)
Call Plugin.Bkgnd.KeyPress(HwndZ, 51)
Call Plugin.Bkgnd.KeyPress(Hwndx, 51)
Call Plugin.Bkgnd.KeyPress(HwndZ, 51)
Call Plugin.Bkgnd.KeyPress(Hwndx, 51)
Call Plugin.Bkgnd.KeyPress(HwndZ, 51)
Call Plugin.Bkgnd.KeyPress(Hwndx, 51)
Delay 1000
Loop
复制上面代码保存运行
注意事项:运行后用鼠标在第一个窗口点击一下然后按Z,然后点击第二个窗口按X。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询