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。