I've been using autoHotKeyrecently on a windows 8 machine and loving it. But I want to be able to press caps lock and turn the keyboard into a vim like command mode for moving the cursor, inserting and deleting easily in any program.
UPDATE (Thanks to @MCL for the help so far)
Im trying to use the following script but it wont change the behaviour based on the state
state := GetKeyState("Capslock", "T")
if state
j::Send,{Left}
l::Send,{Right}
i::Send,{Up}
k::Send,{Down}
return