Autohotkey脚本突然停止工作


1

该脚本仅在前一段时间起作用,但现在不起作用。

该脚本的作用是在按下USB鼠标的中间按钮后同时禁用鼠标垫和USB鼠标,但是现在并没有。有什么不对?

mbutton::                    ;win + m hotkey
if (x != 1)
{
    BlockInput, MouseMove
    x := 1
    Hotkey, LButton, DoNothing
    Hotkey, RButton, DoNothing
    Hotkey, XButton1, DoNothing
    Hotkey, XButton2, DoNothing
    return
}
if (x = 1)
    reload

DoNothing:
return

F2::
Suspend
return

没有其他的AHK脚本在运行,仅此而已。


猜测您已经按了F2,这将暂停脚本。再按F2一次。
RJFalconer '16

@RJFalconer按下F2将暂停脚本,按下USB鼠标中键将禁用鼠标移动,但不会暂停脚本。
cisab '16

是的,我明白了。没有理由不起作用,因此我假设您正在运行它并按F2。您是否尝试过重新启动AHK?
RJFalconer '16

完成重启,还是一样..
cisab
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.