Jump to content

Control OBS using hotkeys on second keyboard (Lua / AHK?)

Go to solution Solved by Laughter On Water,

I know this is old, but a sufficient answer is available with this youtube video. (Not me.)
I used an old USB numeric keypad and had it up and running in half an hour.
It's a surprisingly simple alternative to streamdeck.
You could probably buy a cheap used numeric keypad at your local Goodwill for a couple bucks.
If you have any scripting background, it shouldn't be too difficult. Good luck.

 

Hello there!

 

Basically I want to use a second keyboard for OBS hotkeys only, maybe some others like mute in discord and teamspeak etc. I know that I can't just plug the keyboard in and start to set hotkeys. Also, I don't just want to use different modifiers (CTRL, Shift, Alt) since they will conflict with other programs. (E.g.: I have teamspeak set up to mute me when I press the decimal point on the numpad, but if I'd assign CTRL+decimal(numpad) to literally anything in OBS, then I'll still get muted in teamspeak. That happens as well when I'm in a game or when I have any program running.) So far I've managed to assign the letter 'C' on the second keyboard to open the calculator using a LuaMacros script from Taran and I feel like it's a step in the right direction. I don't really know that much about scripts so now I'm stuck with a single key that opens the calculator. (Insert sarcastic 'yay' here)

 

If you know of programs that just let me do this or you know how to set a secondary keyboard up, then let me know! I greatly apprechiate any kind of contribution!

Link to post
Share on other sites

Why would you want to use a second keyboard just for hot-keys? Setting key-mappings for any program will remain the same on either keyboard no matter what. This is because most programs will store these as a file on your drive, which in turn means if you make one change, it affects all your keyboards, not just one. If you really want to avoid conflicting with other keybindings, you should try the CTRL+ALT+[any key], not many programs will use these bindings except for maybe an IDE/code editor. I think you can also map the Windows key as well, which near to no programs will be using that key, but I'm not sure about that one since I've only mapped that key on Linux.

Link to post
Share on other sites

1 minute ago, brandon1407 said:

Why would you want to use a second keyboard just for hot-keys? Setting key-mappings for any program will remain the same on either keyboard no matter what. This is because most programs will store these as a file on your drive, which in turn means if you make one change, it affects all your keyboards, not just one. If you really want to avoid conflicting with other keybindings, you should try the CTRL+ALT+[any key], not many programs will use these bindings except for maybe an IDE/code editor. I think you can also map the Windows key as well, which near to no programs will be using that key, but I'm not sure about that one since I've only mapped that key on Linux.

I've already said that adding modifiers like Ctrl, Alt and Shift won't work since it will conflict with many other programs that I would otherwise have to remap completely which would be a huge deal since it's a lot of hotkeys and normally mapped keys that I use on a daily basis in games or just while using a program like firefox. I have gotten my secondary keyboard to be recognized as a separate keyboard already (opening the calculator by pressing the 'C'-key without the system taking notice that the C-key has been pressed) so now it's just a matter of essentially connecting the keyboard to a little script that operates OBS.

Link to post
Share on other sites

Psst.  Stream Deck.  Get one.  Learn it, love it, live with it.  It has OBS support built in and ready to go.

Editing Rig: Mac Pro 7,1

System Specs: 3.2GHz 16-core Xeon | 96GB ECC DDR4 | AMD Radeon Pro W6800X Duo | Lots of SSD and NVMe storage |

Audio: Universal Audio Apollo Thunderbolt-3 Interface |

Displays: 3 x LG 32UL950-W displays |

 

Gaming Rig: PC

System Specs:  Asus ROG Crosshair X670E Extreme | AMD 7800X3D | 64GB G.Skill Trident Z5 NEO 6000MHz RAM | NVidia 4090 FE card (OC'd) | Corsair AX1500i power supply | CaseLabs Magnum THW10 case (RIP CaseLabs ) |

Audio:  Sound Blaster AE-9 card | Mackie DL32R Mixer | Sennheiser HDV820 amp | Sennheiser HD820 phones | Rode Broadcaster mic |

Display: Asus PG32UQX 4K/144Hz displayBenQ EW3280U display

Cooling:  2 x EK 140 Revo D5 Pump/Res | EK Quantum Magnitude CPU block | EK 4090FE waterblock | AlphaCool 480mm x 60mm rad | AlphaCool 560mm x 60mm rad | 13 x Noctua 120mm fans | 8 x Noctua 140mm fans | 2 x Aquaero 6XT fan controllers |

Link to post
Share on other sites

3 minutes ago, jasonvp said:

Psst.  Stream Deck.  Get one.  Learn it, love it, live with it.  It has OBS support built in and ready to go.

I'm not gonna pay more than $150 for it, no way. Besides, I just invested in a new CPU, RAM, motherboard and case.

 

Edit: (Side-note) I'd buy one if thy were cheaper since I know how useful they are.

Link to post
Share on other sites

  • 4 months later...

I know this is old, but a sufficient answer is available with this youtube video. (Not me.)
I used an old USB numeric keypad and had it up and running in half an hour.
It's a surprisingly simple alternative to streamdeck.
You could probably buy a cheap used numeric keypad at your local Goodwill for a couple bucks.
If you have any scripting background, it shouldn't be too difficult. Good luck.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×