Creating Vim-Like Features Using AutoHotKey (AHK)

I recently used autoHotKey on a Windows 8 machine and loved it. But I want to be able to press the lock button and turn the keyboard into virtual command line mode to move the cursor, insert and delete in any program.

UPDATE (Thanks @MCL for the help so far)

I am trying to use the following script, but it will not change state based behavior

state := GetKeyState("Capslock", "T") if state j::Send,{Left} l::Send,{Right} i::Send,{Up} k::Send,{Down} return 
+3
source share
1 answer

Create context sensitive hotkeys with #If :

 #If GetKeyState("CapsLock", "T")=1 ; The following hotkeys will only be effective if GetKeyState("CapsLock", "T")=1 j::Send,{Left} l::Send,{Right} i::Send,{Up} k::Send,{Down} #If ; end of #If 
+5
source

Source: https://habr.com/ru/post/1212674/


All Articles