我正在尝试添加一些我必须移动的行为+ MouseWheelUp但偶尔会将shift修饰符应用于我发送的内容,这里是一个带输出的简单repro案例:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#InstallKeybdHook
#UseHook On
#MaxHotkeysPerInterval 200
+WheelUp::
send {a}
return
这将输出:
aaaaaaaaaaaaaaaaaAaaaaaaaaaaaaaaaaaaaaAaaaaaaaaaaaaaaAaaaaaaaaaaaaa
我写的脚本应该让我使用ctrl + mousewheel模仿标准的鼠标滚轮行为,但有时它仍会发送ctrl + mousewheel,导致放大和缩小。
UseHook是我发现类似问题的建议,但没有影响。 谢谢
编辑:在Windows 10上