问题补充说明:KeyPress "D", 1 Delay 200 LeftClick 1 Delay 200 KeyPress "D", 1 Delay 200 LeftClick 1 Delay 200 KeyPress "D", 1 Delay 200 LeftClick 1 Delay 200 KeyPress "D", 1 Delay 200 LeftClick 1 Delay 200 KeyPress "D", 1 Delay 200 Left... KeyPress "D", 1Delay 200LeftClick 1Delay 200KeyPress "D", 1Delay 200LeftClick 1Delay 200KeyPress "D", 1Delay 200LeftClick 1Delay 200KeyPress "D", 1Delay 200LeftClick 1Delay 200KeyPress "D", 1Delay 200LeftClick 1Delay 200KeyPress "D", 1Delay 200LeftClick 1Delay 200KeyPress "D", 1Delay 200LeftClick 1Delay 200KeyPress "D", 1Delay 200LeftClick 1Delay 200KeyPress "A", 1Delay 200LeftClick 1Delay 200KeyPress "A", 1Delay 200LeftClick 1Delay 200KeyPress "A", 1Delay 200LeftClick 1Delay 200KeyPress "A", 1Delay 200LeftClick 1Delay 200KeyPress "A", 1Delay 200LeftClick 1Delay 200KeyPress "A", 1Delay 200LeftClick 1Delay 200KeyPress "A", 1Delay 200LeftClick 1Delay 200KeyPress "A", 1Delay 200LeftClick 1Delay 200 展开 窗口句柄:1246452
窗口句柄每次打开同一个程序都会改变的,所以你可以用查找窗口名称来获取窗口句柄,代码如下,你照着改就安义留东味功烟棉好
Hwnd = Plugin.Window.Find(0, "按键精灵") //"按键精灵"为要后台操作的窗口的窗口名称,可以用按键抓抓获取,下面附两张图你好找
Call Plugin.Bkgnd.Ke360问答yPress(Hwnd吗斗班促张探, 68) //68是D键的按键码
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, x坐标, y坐标) //这个是后台窗口需要点汉信须条击鼠标的位置坐标
Delay 200
……