How can I remap CTRL-x CTRL-c in Autohotkey?

走远了吗. 提交于 2019-12-05 12:11:16

Here is an example that waits 0.6 seconds for C to be pressed after Control + X:

$^x::
keywait, c, d, t0.6
If ErrorLevel
    Sendinput, ^x
Else 
    WinClose, A
Return

If C is not pressed within 0.6 seconds Control + X is sent.
$ is used at the very beginning when a hotkey sends itself (to avoid an infinite loop).

Manual references:
$
keywait

While this isn't a direct answer to your question, you may want to look at XKeymacs if you haven't already, http://www.cam.hi-ho.ne.jp/oishi/indexen.html

It gives you ALOT of Emacs functionality within all/most windows apps. As with Emacs it is highly configurable, so you can enable/disable Emacs bindings on a global or application level.

It may not be the right solution for everyone, but I can't live without it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!