Last active
February 22, 2019 14:54
-
-
Save jiahut/e004e49b3cc7970a8f3030743e7d5d57 to your computer and use it in GitHub Desktop.
win shotcut behavior like mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; +CapsLock::CapsLock | |
; CapsLock::Ctrl | |
; #::Ctrl | |
\::BackSpace | |
BackSpace::\ | |
`::Escape | |
Escape::` | |
^j::Down | |
^k::Up | |
^n::Down | |
^p::Up | |
^h::Left | |
^l::Right | |
; ^^::^Space | |
#IFWinActive, ahk_class MozillaWindowClass | |
!L:: | |
Send {F6} | |
return | |
#IfWinActive | |
; #Tab::Send !{Tab} | |
^!e:: | |
IfWinExist, ahk_class Chrome_WidgetWin_1 | |
WinActivate, ahk_class Chrome_WidgetWin_1 | |
else | |
Run, code | |
return | |
^!x:: | |
IfWinExist, ahk_class YodaoMainWndClass | |
WinActivate, ahk_class YodaoMainWndClass | |
else | |
Run c:/apps/youdao_dict/yodaodict | |
return | |
^!c:: | |
IfWinExist, ahk_class MozillaWindowClass | |
WinActivate, ahk_class MozillaWindowClass | |
else | |
Run, firefox | |
return | |
^!f:: | |
IfWinExist, ahk_class CabinetWClass | |
WinActivate, ahk_class CabinetWClass | |
else | |
Run, explorer | |
return | |
!w:: | |
WinGetClass, class, A | |
ToolTip, close window: %class% | |
SetTimer, RemoveToolTip, -1000 | |
WinClose, ahk_class %class% | |
return | |
^!r:: | |
;; https://www.top-password.com/blog/5-ways-to-open-run-command-box-in-windows-10/ | |
run, explorer Shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0} | |
return | |
RemoveToolTip: | |
ToolTip | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment