0

In the example below, I am trying get a tap to send A and a hold to hold down CTRL+A .

but as soon as I activate hold and release the key. CTRL remains stuck down and cant do anything until I physically press CTRL.

Any help would be appreciated. Library Link

#Persistent
#singleinstance, force
#include <TapHoldManager>


 
 Default:= new TapHoldManager( 200, 400, 2)


    Default.add("a", func("Key_a")) 


        key_a(isHold, taps, state) 

        {
                    if (taps = 1) and (isHold = 0) and (state = -1)

                    {
                        send, a
                    }


                if (isHold && taps == 1)

                          if (state)

                          {
                                send, {Ctrl Down}
                                send, {a Down}
                          } 

                          else 

                          {
                                send, {Ctrl Up}
                                send, {a Up}
                          } 


        }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.