Skip to content

Instantly share code, notes, and snippets.

@erfg12
Last active November 27, 2019 21:26
Show Gist options
  • Save erfg12/5afa4f9d6de6b71970315364f20c794a to your computer and use it in GitHub Desktop.
Save erfg12/5afa4f9d6de6b71970315364f20c794a to your computer and use it in GitHub Desktop.
@ECHO OFF
REM This is for GIMX cable and ULTRAGRID video stream
SET GIMX_PATH=C:\Program Files\GIMX
SET ULTRAGRID_PATH=C:\Users\jake\Desktop\UltraGrid
SET HOST_IP=192.168.0.0
SET GIMX_USBPORT=COM3
SET HDMI_INPUT=idk
SET GIMX_CONF=X360Pad
:choice
set /P c=Are you [H]ost or [C]lient? Make sure to edit this file for directories, IPs and ports first.
if /I "%c%" EQU "C" goto :client
if /I "%c%" EQU "H" goto :host
goto :choice
:client
ECHO Starting client...
start call "%GIMX_PATH%"\gimx -c %GIMX_CONF% -d %HOST_IP%:51914
start call "%ULTRAGRID_PATH%"\uv -d gl %HOST_IP%
:host
ECHO Starting host...
start call "%GIMX_PATH%"\gimx -c %GIMX_CONF% -p %GIMX_USBPORT% --src %HOST_IP%:51914
start call "%ULTRAGRID_PATH%"\uv -t %HDMI_INPUT%:1920:1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment