
我将我的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键?
windows自动化:模拟菜单项事件
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}
总结以上是内存溢出为你收集整理的如何在Windows 10中使用autohotkey模拟超级密钥全部内容,希望文章能够帮你解决如何在Windows 10中使用autohotkey模拟超级密钥所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)