AutoHotKey:按下另一个按钮时以及释放后发送一个按钮
在自动热键中 我想编写一个脚本,在按住鼠标右键时按一次按钮 并在释放后按另一个。
我尝试写一些东西(我使用 numpad0 而不是鼠标按钮)
Numpad0::
Send {d}
Numpad0 Up::
Send {u}
,但是它一直发送 du ,而不仅仅是 d 和最后的 u >。
这是为什么?
in AutoHotKey
I want to write a script that will press a button once when the right mouse button is held
and press another once its released.
I tried writing something (I used numpad0 instead of mousebutton)
Numpad0::
Send {d}
Numpad0 Up::
Send {u}
but, it keeps sending du all the time, instead of just d and a final u.
why is that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您将热键命令放在声明热键的不同行上,则需要使用
return
语句来结束它:您也可以在一行上声明每个热键,而不需要
>return
如果你不想做太多:If you're putting your hotkey command on a different line to where the hotkey is declared you need to use a
return
statement to end it:You can also just declare each hotkey on one line without a
return
if you're not trying to do too much: