I share this script. It was difficult to get the conditional, I got it thanks to @Seven0528.
Code: Select all
#SingleInstance force
#HotIf winActive("ahk_class Emacs")
LControl::<
<::RControl
Numpad0::RAlt
#HotIf !winActive("ahk_class Emacs")
LAlt::RAlt
#HotIf
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]