Skip to content

Instantly share code, notes, and snippets.

@hymkor
Created June 6, 2022 02:16
Show Gist options
  • Save hymkor/5be160e296241d83303afbc0e818dcc4 to your computer and use it in GitHub Desktop.
Save hymkor/5be160e296241d83303afbc0e818dcc4 to your computer and use it in GitHub Desktop.
My configuration for AutoHotKey
#If WinActive("ahk_exe chrome.exe")
|| WinActive("ahk_exe msedge.exe")
|| WinActive("ahk_exe thunderbird.exe")
|| WinActive("ahk_exe firefox.exe")
|| WinActive("ahk_exe ONENOTE.EXE")
|| WinActive("ahk_class Framework::CFrame")
|| WinActive("ahk_exe onenoteim.exe")
|| WinActive("ahk_exe skype.exe")
|| WinActive("ahk_exe excel.exe")
|| WinActive("ahk_exe MSACCESS.EXE")
|| WinActive("ahk_exe POWERPNT.EXE")
|| WinActive("ahk_exe wordpad.EXE")
|| WinActive(,"Microsoft Edge")
|| WinActive(,"Internet Explorer")
|| WinActive("ahk_exe winword.exe")
|| WinActive("ahk_exe evernote.exe")
|| WinActive("ahk_exe vivaldi.exe")
|| WinActive("ahk_exe slack.exe")
|| WinActive("ahk_exe notepad.exe")
|| WinActive("ahk_exe workreport.exe")
|| WinActive("ahk_exe Teams.exe")
|| WinActive("ahk_exe gnucash.exe")
|| WinActive(,"Mastodon")
|| WinActive(,"Twitter")
^n::Send,{Down}
^p::Send,{Up}
^f::Send,{Right}
^b::Send,{Left}
^d::Send,{Del}
^h::Send,{BackSpace}
^m::Send,{Enter}
^a::Send,{Home}
^e::Send,{End}
#IfWinActive
sc07B & f::Send,^f
sc07B & a::Send,^a
sc07B & e::Send,^e
sc07B & h::Send,{Blind}{Left}
sc07B & j::Send,{Blind}{Down}
sc07B & k::Send,{Blind}{Up}
sc07B & l::Send,{Blind}{Right}
sc07B & y::Send,{Blind}{Home}
sc07B & u::Send,{Blind}{PgDn}
sc07B & i::Send,{Blind}{PgUp}
sc07B & o::Send,{Blind}{End}
; LWin::Return
; RWin::Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment