Dim $rs While 1 If Not WinExists("asdf") Then Exit WinWaitActive("asdf") HotKeySet("{numpad1}","shiftright") HotKeySet("{numpad2}","pau") WinWaitNotActive("asdf") ; $rs = 0 ;没加这行时,shiftright的循环运行中切换到其他程序,模拟按键不结束(这个明显),手动退出脚本,模拟不结束,键盘就卡住了,系统任务栏中的程序点了也没反应,只有重启 HotKeySet("{numpad1}") HotKeySet("{numpad2}") WEnd Func pau() $rs = 0 EndFunc Func shiftright() $rs = 1 While $rs = 1 Send("+{right}") Sleep(500) WEnd EndFunc
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-11-6 07:31 , Processed in 0.082468 second(s), 23 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.