Skip to content

Instantly share code, notes, and snippets.

@hymkor
Last active August 21, 2025 19:21
Show Gist options
  • Select an option

  • Save hymkor/5be160e296241d83303afbc0e818dcc4 to your computer and use it in GitHub Desktop.

Select an option

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}
#If WinActive(,"Minecraft")
Up::MouseMove 0, -50, 0, R
Down::MouseMove 0, 50, 0, R
Left::MouseMove -50, 0, 0, R
Right::MouseMove 50, 0, 0, R
#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}
; gist https://gist.github.com/hymkor/5be160e296241d83303afbc0e818dcc4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment