Skip to content

Instantly share code, notes, and snippets.

@honboubao
Last active May 28, 2021 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save honboubao/9760c53b5865f1e95c62aee469889d9d to your computer and use it in GitHub Desktop.
Save honboubao/9760c53b5865f1e95c62aee469889d9d to your computer and use it in GitHub Desktop.
AutoHotkey script that maps arrow keys, home, end and page up/down onto left win key + uiop/jklö block
#SingleInstance Force
*<#j::Send {Blind}{LWin up}{Left}{LWin down}{LCtrl}
*<#k::Send {Blind}{LWin up}{Down}{LWin down}{LCtrl}
*<#l::Send {Blind}{LWin up}{Right}{LWin down}{LCtrl}
*<#i::Send {Blind}{LWin up}{Up}{LWin down}{LCtrl}
*<#u::Send {Blind}{LWin up}{Home}{LWin down}{LCtrl}
*<#o::Send {Blind}{LWin up}{End}{LWin down}{LCtrl}
*<#p::Send {Blind}{LWin up}{PgUp}{LWin down}{LCtrl}
*<#ö::Send {Blind}{LWin up}{PgDn}{LWin down}{LCtrl}
<#Backspace::Send {Del}
~LWin::
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, 1
keywait, LWin
return
~LWin up::
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, 0
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment