我将我的Mac工作stream迁移到Windows。 有一件事是我不能没有的超级键,它是Ctrl + Option + Shift + Cmd 。 我使用Karabiner应用程序将Capslock重新映射到此Hyper键。 我听说Autohotkey是Windows的Karabiner替代品 。 你可以帮我在Windows中模拟这个function吗?
我的理想结果是:
完全closuresCapslock因为我很less使用这个
切换Capslock将执行ESC键
按住Capslock将执行Ctrl + Alt + Shift + Windows 。 例如Capslock + C将是Ctrl+Alt+Shift+Windows+C
提前谢谢了!
以下是我与ahk脚本的尝试,但它不工作:(
使用AutoHotkey创build没有默认值(不为空)的Windowsregistry项
如何将键盘input发送到OpenGL / DirectX游戏窗口?
从python运行和处理外部应用程序
当selectAutoHideTaskbar选项并且脚本(ahk脚本)试图隐藏任务栏时如何隐藏任务栏?
如何使用autohotkey停靠左边的窗口?
;----------------------------------------- ; hyper key for windows ;========================================= ; -------------------------------------------------------------- ; notes ; -------------------------------------------------------------- ; ! = alt ; ^ = ctrl ; + = shift ; # = lwin|rwin ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #UseHook #InstallKeybdHook #SingleInstance force SendMode Input ;; deactivate capslock completely SetCapslockState,AlwaysOff ;; remap capslock to hyper Capslock:: sendinput {Blind}{Ctrl Down}{Alt Down}{Shift Down}{LWin Down} return Capslock up:: sendinput {Blind}{Ctrl Up}{Alt Up}{Shift Up}{LWin Up} return ;; vim navigation with hyper ^!+#h:: sendinput {Blind}{Left} ^!+#h up:: sendinput {Blind}{Left Up} ^!+#l:: sendinput {Blind}{Right} ^!+#k:: sendinput {Blind}{Up} ^!+#j:: sendinput {Blind}{Down} ;; popular hotkeys with hyper ^!+#c::^c ^!+#v::^v
如何将AltGr键全局映射到Alt键?
AutoHotkey – 发送UP解除指定的密钥。
为什么这个autohotkey脚本无法一致地保存剪贴板内容?
如何使用AutoHotkey调整窗口位置?
感谢任何人试图帮助我,我自己想出了这个概念,并希望分享它,以防万一有人遇到这种情况。
#NoEnv ; recommended for performance and compatibility with future autohotkey releases. #UseHook #InstallKeybdHook #SingleInstance force SendMode Input ;; deactivate capslock completely SetCapslockState,AlwaysOff ;; remap capslock to hyper ;; if capslock is toggled,remap it to esc ;; note: must use tidle prefix to fire hotkey once it is pressed ;; not until the hotkey is released ~Capslock:: ;; must use downtemp to emulate hyper key,you cannot use down in this case ;; according to https://autohotkey.com/docs/commands/Send.htm,downtemp is as same as down except for ctrl/alt/shift/win keys ;; in those cases,downtemp tells subsequent sends that the key is not permanently down,and may be ;; released whenever a keystroke calls for it. ;; for example,Send {Ctrl Downtemp} followed later by Send {Left} would produce a normal {Left} ;; keystroke,not a Ctrl{Left} keystroke Send {Ctrl DownTemp}{Shift DownTemp}{Alt DownTemp}{LWin DownTemp} KeyWait,Capslock Send {Ctrl Up}{Shift Up}{Alt Up}{LWin Up} if (A_PriorKey = "Capslock") { Send {Esc} } return ;; vim navigation with hyper ~Capslock & h:: Send {Left} ~Capslock & l:: Send {Right} ~Capslock & k:: Send {Up} ~Capslock & j:: Send {Down} ;; popular hotkeys with hyper ~Capslock & c:: Send ^{c} ~Capslock & v:: Send ^{v}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。