Autohotkey 自动热键:Can';我不明白为什么这会推动Shift和代码的其余部分

Autohotkey 自动热键:Can';我不明白为什么这会推动Shift和代码的其余部分,autohotkey,shift,Autohotkey,Shift,我正在尝试制作一个宏,只要我按住侧边的鼠标按钮,它就会重复按O和M键,但现在它突然也在按shift键。你知道为什么或者如何修复它吗 delaybetweenfkeys:=0 fkeydowndelay:=5 XButton1:: Down := True Send, {O Down}{m Down} Loop { Send, {O Down}{m Down} Sleep, 5 Send, {O Up}{m Up} If !Down Break } Send, {O Up}{m Up} Re

我正在尝试制作一个宏,只要我按住侧边的鼠标按钮,它就会重复按O和M键,但现在它突然也在按shift键。你知道为什么或者如何修复它吗

delaybetweenfkeys:=0
fkeydowndelay:=5

XButton1::
Down := True
Send, {O Down}{m Down}
Loop
{
Send, {O Down}{m Down}
Sleep, 5
Send, {O Up}{m Up}
If !Down
  Break
}
Send, {O Up}{m Up}
Return
XButton1 Up::Down := False

你告诉它发送一个大写字母“O”,为了达到这个目的,它发送Shift+O。因此,如果您同时按下其他键,它也会被移动。

非常感谢!完全有道理,我甚至没想到。@Armin:如果Autohotkey不发送Shift,你怎么建议它发送大写字母“O”?
Send
的目的是发送击键,而不是字符。文档甚至说
包括换档按钮,而
!a
没有。如果你不满意,做一些测试。我得出结论是因为我尝试了OP的代码(我的鼠标没有
XButton1
,所以我改用
rbbutton
),并观察到同时按住“a”和鼠标右键会产生一些大写字母“a”。