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

How to block AHK's keystrokes from main keyboard? #159

Open Vaarelsauce opened 2 years ago

Vaarelsauce commented 2 years ago

I'm using LUAMacros to configure two keyboards, for a couch party (fighting) game session.

The 1st keyboard possesses most of its functions. The 2nd keyboard is suppressed by a LUA script (it's the SECOND_KEYBOARD_script_for_LUA_MACROS.lua), and essentially I'm binding the 2nd keyboard's WASD + whatever other buttons as the 1-10 number buttons. It's a weird approach, but I'm not very good at coding so I don't know how else to do it.

The problem is that, after launching the AHK script (that coverts 2nd keyboard's certain keystrokes into numbers), those keystroke bindings also affects my 1st keyboard as well. So pressing the WASD from 2nd keyboard converts into "1234", but also pressing WASD on my 1st keyboard also results in "1234" as well.

Is there any way to fix this (e.g. telling AHK to ignore my 1st keyboard inputs, or binding the 2nd keyboard to F13-F24), or rework my whole coding approach with a simpler solution to get multi-keyboarding on one PC to work?

BacKinnn commented 11 months ago

Sorry for not getting any response. I'm also getting this error, but I'm using Corsair K63 as a macro keyboard, separate from the main keyboard. Did you figure out how to solve this issue?