Question / Help Trying to start streaming automatically when I launch a game

qwe12a12

New Member
Smite has no game recording options so i decided to stream my games to a youtube account so that i have my matches archived without storing the files on my computer or having to upload them manually, my problem is that i often forget to start obs and press the start streaming button when i start playing smite so i looked into ways of automatically starting obs and my stream when smite is launched mostly i messed around with autohotkey however i was unable to get anything working so id like to know if anyone here has a solution.

#firstworldproblems
 

Tarumes

Member
Its possible with Autohotkey/AutoIt with a bit of code and commandline switches for OBS
https://obsproject.com/wiki/Launch-Parameters
You can modify this piece of AutoIt code for your needs
Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=y
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_Run_Tidy=y
#Tidy_Parameters=/tc 1 /rel
#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/rm
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;*****************************************
;OBS-Launcher.au3 by Tarumes
;Erstellt mit ISN AutoIt Studio v. 1.06
;*****************************************
Local $portable_mode = FileExists(@ScriptDir & '\portable_mode.txt')
ConsoleWrite('portable_mode.txt ' & $portable_mode & @CRLF)
If $portable_mode = 0 Then
FileWrite(@ScriptDir & '\portable_mode.txt', '')
EndIf
If ProcessExists('obs32.exe') Or ProcessExists('obs64.exe') Then
ConsoleWrite('OBS-Studio can´t start because it is already running' & @CRLF)
MsgBox(64, 'OBS-Studio', 'OBS-Studio can´t start because it is already running', 0)
Exit
ElseIf @OSArch = 'X86' Then
ConsoleWrite('OSArch = X86 start from ' & @ScriptDir & '\bin\32bit' & @CRLF)
$iPID = Run('bin\32bit\obs32.exe', @ScriptDir & '\bin\32bit')
ElseIf @OSArch = "X64" Then
ConsoleWrite('OSArch = X64 start from ' & @ScriptDir & '\bin\64bit' & @CRLF)
$iPID = Run('bin\64bit\obs64.exe', @ScriptDir & '\bin\64bit')
Else
EndIf
ConsoleWrite('PID = ' & $iPID & @CRLF)
 
Top