CapsLock to Ctrl while pressed

Get help with using AutoHotkey and its commands and hotkeys
Posts: 2
Joined: 26 Oct 2018, 08:20

CapsLock to Ctrl while pressed

31 Oct 2018, 08:31

Hi all,

I am trying to use Emacs key bindings in Windows 10 using AutoHotkey. Through my search I came across ewow (Emacs Way of Operating Windows) script on github which is exactly what I was looking for.
I also want to map my CapsLock to Left Ctrl and my Enter to Right Ctrl while pressed and enter otherwise I have accomplished this with following lines of code. The issue is that I cannot do repeated Ctrl actions in one go while CapsLock is held down. I have to release CaspLock and repress it every time. For example, in emacs Ctrl-F is used for going forward (right arrow key), withe the following script, I cannot do Ctrl-F-F-F to move forward 3 characters.


Code: Select all

; CapsLock to Left Ctrl
SetCapsLockState Off


; Enter to Right Ctrl
SendInput, {LCtrl Down}
KeyWait, Enter
SendInput, {LCtrl Up}
if ( A_PriorKey = "Enter" ){
Send {Enter}

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], JeMykle, mikeyww, Rebecca and 50 guests