 
 #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 := ""
 

Menu, Tray, Add, About JKLmouse, MenuAbout
Menu, Tray, Add, JKLmouse Website, MenuWebsite

Menu, Tray, Check, Left Hand: ESDF
Menu, Tray, Check, Right Hand: IJKL

; Display tray balloon
; TODO: more useful content?

	return

MenuESDF:
	setKeysLeft( "ESDF" )
	return

MenuWASD:
	setKeysLeft( "WASD" )
	return

MenuIJKL:
	setKeysRight( "IJKL" )
	return

MenuHJKL:
	setKeysRight( "HJKL" )
	return

