Autohotkey 发送密钥不起作用

Auto Hot Key SendKey Not Working

所以我有这个:

#SingleInstance, force

^x::ControlSend, , abc, notepad.exe

而且它不起作用。我打开了记事本,然后在 Windows 资源管理器中点击 control+x,但没有任何反应。它不会剪切我选择的文件或在记事本 window 中键入 abc。语法有问题吗?我仔细检查了所有内容。

查看 win title 文档。

A​​utoHotkey 将 "notepad.exe" 解释为 "some window with the title 'notepad.exe'"。除非您打开了一个名为 so 的文档,否则将找不到指定的 window。

改用..., ahk_exe notepad.exe

祝一切顺利,