 Menu, Tray, Add, About JKLmouse, MenuAbout
 Menu, Tray, Add, JKLmouse Website, MenuWebsite
 
-Menu, Tray, Check, Left Hand: ESDF
-Menu, Tray, Check, Right Hand: IJKL
+Menu, Tray, Check, Left Hand: %keysLeft%
+Menu, Tray, Check, Right Hand: %keysRight%
 
 ; Display tray balloon
 ; TODO: more useful content?

SetKey( on, mod, key, action ) {
	keydown = %mod% & %key%
	if( on ) {
		Hotkey %keydown%, %action%
		Hotkey %keydown% UP, StopAcceleration
	}
	else {
		Hotkey %keydown%, Off
		Hotkey %keydown% UP, Off
	}
}



#SingleInstance force

SetRegView, 64

version := "0.2x"

; Use either the embedded icon in a compiled .exe,
; or a separate .ico file when running the .ahk script.
iconPath := RegExReplace( A_ScriptFullPath, "i).ahk$", ".ico" )

regKeySettings := "Software\JKLmouse"

; TODO: protect against invalid registry string
keysLeft := RegStringRead( "KeysLeft", "ESDF" )
keysRight := RegStringRead( "KeysRight", "IJKL" )

keyMap := ""

