按键精灵参数是必选项:'QMplugin_window.Iswindow'.
的有关信息介绍如下:Plugin hwnd = Window.GetKeyFocusWnd()Plugin Window.SendKeyPress(hwnd,49)Plugin Window.SendKeyPress(hwnd,50)这个是用内部插件令命的第一条参数Plugin hwnd = Window.GetKeyFocusWnd()的括号内要写入你要运行的程名这个脚本就是在记事本内不停地按1和2的了Plugin hwnd1=Window.Find(0,"新建 文本文档.txt - 记事本") Plugin hwnd=Window.FindEx(hwnd1,0,'Edit',0) Plugin Window.SendKeyDown(hwnd,49) Delay 50 Plugin Window.SendKeyUp(hwnd,49) Delay 1000 Plugin Window.SendKeyPress(hwnd,50) Delay 1000