MessageBox "点击确定后请把鼠标移动到所需读取句柄的第①个窗口"
Delay 3000
hwnd1 = PluginWindowMousePoint()
MessageBox "第①个窗口句柄为:" & hwnd1
Delay 2000
MessageBox "点击确定后请把鼠标移动到所需读取句柄的第②个窗口"
Delay 3000
hwnd2 = PluginWindowMousePoint()
MessageBox "第②个窗口句柄为:" & hwnd2
Rem a
Call PluginBkgndKeyPress(hwnd1,49)
Call PluginBkgndKeyPress(hwnd2,49)
Delay 30000
Goto aHwnd = PluginWindowMousePoint()
Rem a
Call PluginBkgndKeyPress(Hwnd, 112)
Delay 5000
Goto a
先把鼠标移动到需要运行脚本的窗口上,再启动脚本
如果是3开,那需要在脚本设置界面,把右边“脚本属性”的“禁止重复运行”改成“否”,然后分别在3个游戏窗口启动脚本。
当然了,前提是你的游戏要支持按键精灵后台脚本……
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)