1个回答
展开全部
Do
If WaitKey = 90 Then
HwndZ = Plugin.Window.MousePoint()
ElseIf WaitKey = 88 Then
HwndX = Plugin.Window.MousePoint()
End If
Loop Until HwndZ > 0 and HwndX > 0
Do
Call Plugin.Bkgnd.KeyPress(HwndZ, 70)
Call Plugin.Bkgnd.KeyPress(HwndX, 70)
Delay 10
Loop
启动脚本后在窗口1按Z,在窗口2按X就会开始自动按F了。
If WaitKey = 90 Then
HwndZ = Plugin.Window.MousePoint()
ElseIf WaitKey = 88 Then
HwndX = Plugin.Window.MousePoint()
End If
Loop Until HwndZ > 0 and HwndX > 0
Do
Call Plugin.Bkgnd.KeyPress(HwndZ, 70)
Call Plugin.Bkgnd.KeyPress(HwndX, 70)
Delay 10
Loop
启动脚本后在窗口1按Z,在窗口2按X就会开始自动按F了。
追问
我用文档实验没用啊
追答
按Z和X前先用鼠标在相应窗口点击一下然后再按Z或X,普通代码界面有说明的吧,获取鼠标指向的窗口句柄。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询