- 安装 autohotkey
- 编写 test.ahk 脚本如下:
- 双击运行脚本
- 要开机自动运行的话可在 任务计划程序 中添加任务
脚本内容:
#IfWinActive ahk_class Emacs ; if in emacs +Capslock::Capslock ; make shift+Caps-Lock the Caps Lock toggle Capslock::Control ; make Caps Lock the control button ^Space::ControlSend, ,^{Space Down}{Space Up},ahk_class Emacs ; Sends simulated keystrokes to a window or control #IfWinActive ; end if in emacs
作者:虞季夏
链接:https://www.zhihu.com/question/22288432/answer/502086049
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
作者:小运
链接:https://www.zhihu.com/question/22288432/answer/447721321
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
Windows 10 亲测可用,方法是同时修改用户和默认的输入法快捷键的注册值。
步骤如下:
- 新建一个txt文件,名称命名为 坑爹bug.reg
- 复制粘贴以下内容到文件
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000010]
"Key Modifiers"=hex:00,c0,00,00
"Virtual Key"=hex:ff,00,00,00
[HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\00000070]
"Key Modifiers"=hex:00,c0,00,00
"Virtual Key"=hex:ff,00,00,00
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000010]
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:00,00,00,00
"Virtual Key"=hex:ff,00,00,00
[HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000070]
"Key Modifiers"=hex:02,c0,00,00
"Target IME"=hex:00,00,00,00
"Virtual Key"=hex:ff,00,00,00
3. 双击执行该文件
4. 尝试是否生效,若不生效,则需要注销重新登录。
第三种方法是autohotkey,一行代码
^space::return
Comments | NOTHING