i'm trying to emulate a numpad on my new tenkeyless keyboard. i've got most of it working now but i'd like for the numpad emulation to start in an off state, to be toggled on when i hit the CAPSLOCK key. also, i would really like the capslock key to illuminate when the numpad is being illuminated... right now, on or off, the light does not come on.
here is the code i'm using:
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;remapping "normal" number keys to make them
;behave like numpad numbers
;using the "CapsLock" to turn on/off remapping code
SetCapsLockState, % (State:=!State) ? "Off" : "On"
thanks much for the help.