1个回答
展开全部
//等待按键
WaitKey
//得到鼠标指向窗口
Hwnd = Plugin.Window.MousePoint()
//多少个窗口就循环几次,并且改变变量Hwnd
//等待按键
WaitKey
//得到鼠标指向窗口
Hwnd1 = Plugin.Window.MousePoint()
//多少个窗口就循环几次,并且改变变量Hwnd
//等待按键
WaitKey
//得到鼠标指向窗口
Hwnd2 = Plugin.Window.MousePoint()
//这边先假设3个窗口
Rem e
//等待指定按键 变量为W
w = WaitKey()
//如果W=89 也就是你按了Y键
If W=89 Then
//则在3个窗口里面同时按键Y
Call Plugin.Bkgnd.KeyPress(Hwnd, 89)
Call Plugin.Bkgnd.KeyPress(Hwnd1, 89)
Call Plugin.Bkgnd.KeyPress(Hwnd2, 89)
End If
goto E
WaitKey
//得到鼠标指向窗口
Hwnd = Plugin.Window.MousePoint()
//多少个窗口就循环几次,并且改变变量Hwnd
//等待按键
WaitKey
//得到鼠标指向窗口
Hwnd1 = Plugin.Window.MousePoint()
//多少个窗口就循环几次,并且改变变量Hwnd
//等待按键
WaitKey
//得到鼠标指向窗口
Hwnd2 = Plugin.Window.MousePoint()
//这边先假设3个窗口
Rem e
//等待指定按键 变量为W
w = WaitKey()
//如果W=89 也就是你按了Y键
If W=89 Then
//则在3个窗口里面同时按键Y
Call Plugin.Bkgnd.KeyPress(Hwnd, 89)
Call Plugin.Bkgnd.KeyPress(Hwnd1, 89)
Call Plugin.Bkgnd.KeyPress(Hwnd2, 89)
End If
goto E
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询