除应用程序外,AutoHotKey 无法重新映射
Remap doesn't work by AutoHotKey except for an application
我想使用 Autohotkey
将 right ctrl+a
重新映射到 Home
,但名为 xyzzy
.
的应用程序除外
这是我写的代码。
if not WinActive("ahk_exe xyzzy.exe")
>^a::Home
重新映射适用于记事本等其他应用程序,但在使用 xyzzy.exe
时也会重新映射。
ahk_exe
name 被 AU3_Spy.exe
检查如下图。
如何从键重映射中排除特定应用程序?
尝试
#IfWinNotActive ahk_exe xyzzy.exe
>^a:: Send {Home}
#If
https://www.autohotkey.com/docs/commands/_IfWinActive.htm
或
>^a::
If !WinActive("ahk_exe xyzzy.exe") ; "!" means "NOT" in this case
Send {Home}
return
我想使用 Autohotkey
将 right ctrl+a
重新映射到 Home
,但名为 xyzzy
.
这是我写的代码。
if not WinActive("ahk_exe xyzzy.exe")
>^a::Home
重新映射适用于记事本等其他应用程序,但在使用 xyzzy.exe
时也会重新映射。
ahk_exe
name 被 AU3_Spy.exe
检查如下图。
如何从键重映射中排除特定应用程序?
尝试
#IfWinNotActive ahk_exe xyzzy.exe
>^a:: Send {Home}
#If
https://www.autohotkey.com/docs/commands/_IfWinActive.htm
或
>^a::
If !WinActive("ahk_exe xyzzy.exe") ; "!" means "NOT" in this case
Send {Home}
return