牛さん
牛さん

Reputation: 3016

Make a left Enter key with AutoHotkey, and also with a hot-key to resume the remapped key?

I'm thinking about to remap some key to behavior the Enter key for the left hand to easy access.

Then I find AutoHotkey and plan to map the Capslock key to Enter key. Also I need to resume to the Capslock key when I need it, so I also map the RAlt+Capslock to be the Capslock key.

However it doesn't work as expected. Anyone can give some advises?

Here's what I've tried:

Capslock::Enter
RAlt & Capslock::SendInput !{Capslock}

For now the second line can work but the first line doesn't work. When press the Capslock it doesn't send Enter key.

Upvotes: 0

Views: 727

Answers (1)

Avi
Avi

Reputation: 1381

Try this

$CapsLock::Enter
RAlt & Capslock::SetCapsLockState, % GetKeyState("CapsLock", "T") ? "Off" : "On"

Upvotes: 1

Related Questions