Tuesday, December 23, 2025

OBS Hotkey Buttons

 This is a program that I wrote to give me 9 buttons that, upon selection, would run a batch file.
You can use this for most anything, I use it in OBS to trigger camera recalls.

Here is the link


https://drive.google.com/drive/folders/1Ykz7O9Jtv8FseBUAVkGHXUBMF83hNtoo?usp=sharing


This is the application.


Put it in its own folder, and run the app.  It will create a few files:


It will create a .CONF file and it will create 9 test .bat files.


You can customize each button name

You can change the title of the window itself

You can customize the color of the background and the font size.


The Batch files are test and simply echo "This is a test" for 5 seconds.

If you don't want to use these, just delete them.  But the program itself, each button looks for a file name called "preset1.bat" or "preset2.bat", the number reflecting the button being pressed.


I use this in OBS to trigger events.  You can use "Window Dock" plugin to dock these right into the OBS screen.


Friday, December 19, 2025

Windows Route add and delete

 route add 141.196.0.0 mask 255.255.0.0 192.168.129.248
route delete 141.196.0.0

Need to have the word delete in full text

Saturday, December 13, 2025

Send VISCA commands using windows batch file

Have a situation where I want to control some FOMAKO cameras using VISCA, but from a Windows command prompt.  These commands for VISCA are HEX values which are sent.

You'll need two programs

1:  NCAT  (this will send the actual HEX commands)

https://nmap.org/dist/nmap-7.98-setup.exe

2:  XXD   (This tool will translate HEX commands)

https://sourceforge.net/projects/xxd-for-windows/

Download and install these.

From a simplicity sake, drop XXD into a folder that will contain your batch files.  You can add it to your system path, there are lots of online tutorials already

The command syntax is as follows:

echo 'HEX VALUE' | xxd -r -p | ncat CAMERA_IP VISCA_PORT

So the example below will send the HEX to the camera at 192.168.0.11 port 52381 and change it to recall a set point #3 (substitute 03 in bold for 01 or 02 or whatever preset value you want to recall.

echo '8101043f0203ff' | xxd -r -p | ncat 192.168.0.11 52381
I incorporated it a batch file because I wanted to send some other commands.
This batch file example send command from one computer to another computer running OBS. 
So the first computer runs a .bat file and it looks like this:

echo '8101043f0203ff' | xxd -r -p | ncat 192.168.0.11 52381

timeout /T 3 /NOBREAK > NUL

C:\OBSCommand\OBSCommand.exe /server=192.168.0.10:4455 /password="password01" /scene="Slide1" /delay=1
So the above syntax contained in a BAT file to do the following:

Command camera @ 192.168.0.11 to move to Preset #3
Wait 3 seconds 
Sends a WebSocket command to OBS to change the scene called "Slide1".

Here are my camera network settings, just in case you run into issues with your camera, to help troubleshooting.