1个回答
展开全部
1楼的不行吗?试试这个
//下面这句是得到当前最前面的窗口句柄
Plugin hwnd = Window.Foreground()
在分别取2个窗口的句柄存入hwnd1和hwnd2
if hwnd1=hwnd
Plugin Window.SendKeyPress(hwnd1,18)
Plugin Window.SendKeyPress(hwnd1,9)
Delay 1000
else
Plugin Window.SendKeyPress(hwnd2,18)
Plugin Window.SendKeyPress(hwnd2,9)
endif
//下面这句是得到当前最前面的窗口句柄
Plugin hwnd = Window.Foreground()
在分别取2个窗口的句柄存入hwnd1和hwnd2
if hwnd1=hwnd
Plugin Window.SendKeyPress(hwnd1,18)
Plugin Window.SendKeyPress(hwnd1,9)
Delay 1000
else
Plugin Window.SendKeyPress(hwnd2,18)
Plugin Window.SendKeyPress(hwnd2,9)
endif
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询