I have two blocks of code in my example, its using a library called TapHoldManager. I am trying to get a single tap to disable Lctrl
in the example below, tap disables Lctrl, while a hold reenables. But running this code I get error of, ==> Target label does not exist.
Code: Select all
BconG6043DX:= new TapHoldManager( 80, 200)
BconG6043DX.Add("esc", Func("BconG6043DX_esc"))
BconG6043DX_esc(isHold, taps, state)
{
if (taps == 1)
{
if (isHold == 0)
{
Gosub, Disable_bcon
}
Else
{
if (state)
{
Gosub, Disable_bcon, Off
}
}
}
}
Disable_bcon:
LCtrl:: Return
Return