Rem a
//如果不需要一直循环可以将开始的Rem a和末尾的Goto a删除
KeyDown 68,1
For I=0 to 5
KeyPress 74,1
Delay 500
Next
KeyUp 68,1
KeyDown 65,1
For I=0 to 5
KeyPress 74,1
Delay 500
Next
KeyUp 65,1
Goto a
后台运行脚本
hwnd=Plugin.Window.GetKeyFocusWnd()
//在你所需要此交不的窗口启动热键
Rem A
//如果不需要一直循环可以将开始的Rem A和末尾的Goto A删除
Call Plugin.Bkgnd.KeyDown(hwnd,68)
For I=0 to 5
Call Plugin.Bkgnd.KeyDown(hwnd,74)
Delay 500
Next
Call Plugin.Bkgnd.Keyup(hwnd,68)
Call Plugin.Bkgnd.KeyDown(hwnd,65)
For I=0 to 5
Call Plugin.Bkgnd.KeyDown(hwnd,74)
Delay 500
Next
Call Plugin.Bkgnd.Keyup(hwnd,65)
Goto A
温馨提示:答案为网友推荐,仅供参考