按键精灵的后台插件(Bkgnd)
用脚本实现在记事本输入“hello”,然后输入“按键精灵”,最后把光标停留在“hello”和“按键精灵”之间。
hwnd = Plugin.window.mousepoint() TracePrint "查找到的记事本窗口句柄为:"&hwnd Call plugin.bkgnd.keypress(hwnd,72) Call plugin.bkgnd.keypress(hwnd,69) Call plugin.bkgnd.keypress(hwnd,76) Call plugin.bkgnd.keypress(hwnd,76) Call plugin.bkgnd.keypress(hwnd,79) Call plugin.bkgnd.SendString(hwnd,"按键精灵") Call plugin.bkgnd.MoveTo(hwnd,39,10) Call plugin.bkgnd.leftclick(hwnd,39,10)
- 上一篇: 按键精灵的窗口插件
- 下一篇: 按键精灵的颜色插件(Color)