求一个按键精灵脚本是后台的,只用按F1F2循环按不间断的,窗口句柄我...

2025-03-13 17:09:02
推荐回答(1个)
回答1:

Hwnd = Plugin.Window.MousePoint()
Rem a
Call Plugin.Bkgnd.KeyPress(Hwnd, 112)
Delay 100
Call Plugin.Bkgnd.KeyPress(Hwnd, 113)
Delay 100
Goto a

先把鼠标移动到需要运行脚本的窗口上,再启动脚本