Created
December 13, 2012 19:28
-
-
Save morhetz/4279039 to your computer and use it in GitHub Desktop.
Force hand alteration with Shift, Control and Alt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ----------------------------------------------------------------------------- | |
; 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