I created 3 simple scripts, which you can execute with your StreamDeck to increase or reset your win / loss counters while you are streaming.
Create the following batch files on your Windows-PC and paste in the code snippets:
@echo off
echo 0 > %cd%\wins.txt
echo 0 > %cd%\losses.txt
@echo off
set file=%cd%/wins.txt
if not exist %file% (exit)
for /f "tokens=*" %%A in (%file%) do (set counter=%%A)
set /A COUNTER=%COUNTER%+1
echo %Counter% > %file%
@echo off
set file=%cd%\losses.txt
if not exist %file% (exit)
for /f "tokens=*" %%A in (%file%) do (set counter=%%A)
set /A COUNTER=%COUNTER%+1
echo %Counter% > %file%
Run reset_script.bat to create wins.txt and loss.txt
- Create a new "open" button in your StreamDeck software (System -> Open)
- Highlight the button and select your script file
- Repeat these steps for all 3 scripts (win, loss, reset)
- Add a new text source in your scene and choose "Read from file" in properties
- Select the wins.txt for your win counter and loss.txt for your loss counter (loss counter needs to be a new text source)
You should now be able to press your win / loss / reset buttons on your StreamDeck to control your counters in OBS / Streamlabs OBS!
You should now be able to press your win / loss / reset buttons on your StreamDeck to control your counters in OBS / Streamlabs OBS!
SORRY WHAY BUTTON DO YOU MEAN? i can change txt files but i need buttons whre r them?