ewow icon indicating copy to clipboard operation
ewow copied to clipboard

Implementing CapsLock and Enter to Control with ewow

Open kourosh2 opened this issue 5 years ago • 4 comments

Hi,

First of all, thank you for the great script.
I was wondering what is the best way to remap CapsLock to LCtrl and Enter to RCtrl (while pressed, enter otherwise). Right now I have implemented my own script to achieve the above. The issue is that they are not working as smooth as regular Control keys. For example when trying to move up and down using C-p and C-n, using CapsLock I have to lift my finger after every C-p, while this is not the case using regular Control. Thank you again for the great script. Kourosh

kourosh2 avatar Oct 23 '18 13:10 kourosh2

Hi! I use https://docs.microsoft.com/en-us/sysinternals/downloads/ctrl2cap which may or may not satisfy your needs. I'm personally happy with it, it closely mimics what I got used to on Linux.

hajovonta avatar Nov 29 '18 16:11 hajovonta

Thank you @hajovonta for your suggestion. While ctrl2cap sounds like a good alternative but it won't solve my problem with enter key. Do you happen to know of anything like ctrl2cap for Enter key.

Thanks Kourosh

kourosh2 avatar Nov 30 '18 02:11 kourosh2

Hi @kourosh2, Unfortunately not: I had never felt the need to remap my Enter. I followed this: https://www.emacswiki.org/emacs/MovingTheCtrlKey

Look around, there may be some solution that you can use for your purposes. Best regards, hajovonta

hajovonta avatar Nov 30 '18 10:11 hajovonta

Hi @zk-phi ,

I know you might not be interested in implementing what I am asking for. Even without this feature, ewow have made my life much easier, so thank you for that. I have looked through your code to see if I can modify it myself. But unfortunately, I am new to autohotkey and your code seems very complicated to me. If you are interested in implementing it, I would be more than happy to compensate your time for 50 bucks (sorry if it is not too muck, I am student).
As I said in my first comment, I want to remap Caps Lock and Enter (while long pressed) to Control. I have achieved the above but the issue is that the control key is not repeatable. Take C-f for example, it is supposed to send Right command, using Caps Lock and/or Enter as Control key it only sends the first Right command and it sends f for subsequent key presses. I think you take care of this behavior for normal Control key with your ``command_motion'' function.

Looking forward to hearing back from you. Best, Kourosh

kourosh2 avatar Dec 16 '18 00:12 kourosh2