Skip to content

Instantly share code, notes, and snippets.

@morhetz
Created December 13, 2012 19:28
Show Gist options
  • Save morhetz/4279039 to your computer and use it in GitHub Desktop.
Save morhetz/4279039 to your computer and use it in GitHub Desktop.
Force hand alteration with Shift, Control and Alt
; -----------------------------------------------------------------------------
; File: better-typist.ahk
; Description: Force hand alteration with Shift, Control and Alt
; Author: morhetz <morhetz@gmail.com>
; Last Modified: 13 Dec 2012
; -----------------------------------------------------------------------------
keysLeft := "q*w*e*r*t*a*s*d*f*g*z*x*c*v*b"
keysRight := "y*u*i*o*p*[*]*\*h*j*k*l*;*'*n*m*,*.*/"
StringSplit, keysArray, keysLeft, *
loop %keysArray0%
{
ikey := keysArray%A_Index%
Hotkey, % "LShift & " ikey, HookKey
Hotkey, % "LControl & " ikey, HookKey
Hotkey, % "LAlt & " ikey, HookKey
}
StringSplit, keysArray, keysRight, *
loop %keysArray0%
{
ikey := keysArray%A_Index%
Hotkey, % "RShift & " ikey, HookKey
Hotkey, % "RControl & " ikey, HookKey
Hotkey, % "RAlt & " ikey, HookKey
}
return
HookKey:
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment