TaranVH / 2nd-keyboard

ALL of Taran's scripts - not just for the 2nd keyboard.
https://www.youtube.com/watch?v=O6ERELse_QY
1.65k stars 538 forks source link

Intercept readme lacking instructions for low latency keypresses #177

Open phly95 opened 4 months ago

phly95 commented 4 months ago

If your script requires low latency, and autohotkey is not cutting it, you can use different triggers and combos for pressing and lifting the key you are pressing. For example, if you want to map the numpad of 4 to the number 2 on the keyboard (number row), in the lua script, you can make a command for pressing down num4 and another command as num4up that will lift the number 2 like this:

[num4] device=HID\VID_046D&PID_C31C&REV_4920&MI_00 trigger=4b,0,0 combo=3,0,0

[num4up] device=HID\VID_046D&PID_C31C&REV_4920&MI_00 trigger=4b,0,1 combo=3,0,1

This should be in the guide.