Skip to content

Instantly share code, notes, and snippets.

@pawin
Created June 4, 2017 05:24
Show Gist options
  • Save pawin/272524f1b9ff36996402e79695262598 to your computer and use it in GitHub Desktop.
Save pawin/272524f1b9ff36996402e79695262598 to your computer and use it in GitHub Desktop.
Mapping keyboards
#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.
;For natural scrolling
WheelUp::
Send {WheelDown}
Return
WheelDown::
Send {WheelUp}
Return
;Map Windows and Alt key
;Special remap for LWin & Tab to AltTab
;LWin & Tab::AltTab
;All other LWin presses will be LAlt
LWin::LAlt
; Makes the Alt key send a Windows key
LAlt::LWin
;Use capslock to switch between language
Capslock::Send {BLIND}{LShift Down}{LAlt Down}{LShift Up}{LAlt Up}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment