意外字符被发送到输出

时间:2014-09-12 09:37:01

标签: autohotkey

脚本下方:

:*:mw::
    Send, {Ctrl Down}{RWin Down}{x Down}{Ctrl Up}{RWin Up}{x Up}
一旦运行,

将字符“cp”发送到屏幕。

因此,如果我在文本编辑器中输入“mw”,则会将“cp”发送给编辑器。

如何修改脚本以便只触发“Ctrl,WindowsKey,x”键?

1 个答案:

答案 0 :(得分:0)

您需要return

:*:mw::
    Send, {Ctrl Down}{RWin Down}{x Down}{Ctrl Up}{RWin Up}{x Up}
    return  ; Add this to return without continuing to execute statements after this line

Send, cp  ; Just a guess, I think you have this line somewhere here

如果return与热键位于同一行,您可以省略Send

:*:mw::Send, {Ctrl Down}{RWin Down}{x Down}{Ctrl Up}{RWin Up}{x Up}