evilC / TapHoldManager

An AHK library for Long Press / Multi tap / Multi tap and hold
MIT License
124 stars 13 forks source link

Double shift issue #6

Open remypzt opened 4 years ago

remypzt commented 4 years ago

Hi and thanks a lot for your job

I 've successfully customize my keyboard for when I make an double taps on shift it's change the capslock status but i met an issues : it's seems like I must have an super time precision and fast for it's work and it's strange because I don't have the same behavior if I replace Shift by an another keypad I'd spend plenty of time to find a solutions but i can't found it. can you help me ? Thanks

This is my code :

`#include

SingleInstance force

thm := new TapHoldManager(, , 2) ;
thm.Add("LShift", Func("LockCapsFunc")) ; return

LockCapsFunc(isHold, taps){ if (isHold){ } else { ; Respond to multi-tap if (taps == 2){ SetCapsLockState % !GetKeyState("CapsLock", "T") ; } } } `