Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing CapsLock and Enter to Control with ewow #1

Open
kourosh2 opened this issue Oct 23, 2018 · 4 comments
Open

Implementing CapsLock and Enter to Control with ewow #1

kourosh2 opened this issue Oct 23, 2018 · 4 comments

Comments

@kourosh2
Copy link

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

@hajovonta
Copy link

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.

@kourosh2
Copy link
Author

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

@hajovonta
Copy link

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

@kourosh2
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants