![]() A more complex AHK script that could probably communicate directly with OBS websockets? (doing away with the Command Line interface) This requires more coding and parsing json formats, etc.Things that I think could fairly easily be improved upon: The manual thing is to know what your OBS Scene names are (case sensitive!) and then just add line to the script for as many joystick buttons and/or scenes as you need. I haven't set any security/password on my websocket connection as I'm running it on the same machine, I'm sure it would be trivial to add that into the command line tool. Prerequisites are OBS Websockets installed and running, the Command Line tool downloaded and extracted to a folder of your choice (from the above, on my machine this is in "C:\OBS Streaming Service Folder\OBS Command Line\") and Autohotkey installed. Run "C:\OBS Streaming Service Folder\OBS Command Line\OBSCommand.exe" /scene="Scene 2",, Hide Run "C:\OBS Streaming Service Folder\OBS Command Line\OBSCommand.exe" /scene="Scene 1",, Hide SetWorkingDir %A_ScriptDir% Ensures a consistent starting directory. SendMode Input Recommended for new scripts due to its superior speed and reliability. #Warn Enable warnings to assist with detecting common errors. #NoEnv Recommended for performance and compatibility with future AutoHotkey releases. The way that I done this is with a simple AHK script that triggers on a joystick button and then calls a command line to OBS to change the scene: Above my immediate ability, but I'm sure the joystick axes could be used as faders to control volumes, etc.The Arduino Micro Pro running joystick library can enumerate as multiple joysticks giving even more buttons if needed.Pressing a joystick button should not interfere with other Windows apps.Joysticks can support up to 32 buttons and 2 HAT switches.The advantage of using a joystick as input are: (I also eagerly watching this Scripted OBS Controller thread, it could work well to do the same thing. A joystick/gamepad (my aim is to create a custom controller using an Arduino Pro Micro running Arduino Joystick Library Version 2.0 ).Command line tool for obs-websocket plugin (Windows) 1.5.3 by FSC. ![]() With some help this could probably be easily made into something more slick. This is pulled together from other bits that others have done so full credit to them. ![]() What I've managed to figure out is a simple (?) way to use a joystick (or gamepad?) as scene switcher. I'm not a programmer, although I can cobble together some simple scripts. OBS doesn't support joystick/gamepad buttons.OBS doesn't seem to support F13-24 keys too well (plus you then need a keyboard that can generate them).Using a keyboard for hotkeys means you have to remember which keys are for what (not easy to label them).You have to choose keys that don't interfere with anything else. ![]() I've been looking around for a while to find a way that would allow me to do something like what a Stream Deck does (but just without the cost of it). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |