模仿 #macOS 的 #AutoHotKey 的脚本,主要是把 Alt 键当成 Ctrl 键来用,另外就是 CMD + a/e 调到行首/行尾,还在 CMD + Shift + 箭头来切换 chrome 标签页。
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
#SingleInstance Force | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
CapsLock::Esc | |
return | |
; 全选 | |
!a:: | |
Send, ^a | |
return | |
; 剪切 | |
!x:: | |
Send, ^x | |
return | |
; 复制 | |
!c:: | |
Send, ^c | |
return | |
; 粘贴 | |
!v:: | |
Send, ^v | |
return | |
; 关闭 | |
!q:: | |
Send, !{F4} | |
return | |
!z:: | |
Send, ^z ; Undo | |
return | |
; chrome 下一个 tab | |
#IfWinActive, ahk_exe chrome.exe | |
!+Right:: | |
Send ^{Tab} | |
return | |
; chrome 上一个 tab | |
#IfWinActive, ahk_exe chrome.exe | |
!+Left:: | |
Send ^+{Tab} | |
return | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
#IfWinActive, ahk_exe chrome.exe | |
^a::Home | |
return | |
#IfWinActive, ahk_exe chrome.exe | |
^e::End | |
return | |
#IfWinActive, ahk_exe firefox.exe | |
^a::Home | |
return | |
#IfWinActive, ahk_exe firefox.exe | |
^e::End | |
return | |
#IfWinActive, ahk_exe Notion.exe | |
^a::Home | |
return | |
#IfWinActive, ahk_exe Notion.exe | |
^e::End | |
return | |
#IfWinActive, ahk_exe WXWork.exe | |
^a::Home | |
return | |
#IfWinActive, ahk_exe WXWork.exe | |
^e::End | |
return | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; New Tab | |
#IfWinActive, ahk_exe firefox.exe | |
!t:: | |
Send, ^t | |
return | |
; Close Tab | |
#IfWinActive, ahk_exe firefox.exe | |
!w:: | |
Send, ^w | |
return | |
#IfWinActive, ahk_exe Code.exe | |
^+f:: | |
Send, ^+pFind in files{Enter} ; fix Ctrl + Shift + F in VSCode | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment