Add fix obs shortcut

This commit is contained in:
Mylloon 2023-05-30 14:24:15 +02:00
parent 3efebf3c5f
commit ff15c3f3c3
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 22 additions and 7 deletions

View file

@ -0,0 +1,19 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%ProgramData%\Microsoft\Windows\Start Menu\Programs\OBS Studio\OBS Studio (64bit).lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^
"$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^
"$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^
"$Shortcut.Save()"
IF NOT "%1"=="skip" PAUSE
EXIT /B

View file

@ -190,6 +190,7 @@ PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '%HOMEPATH%\Documents\Local\fix_obs_shortcut.bat'"
:: === Install OpenTabletDriver ==
:: Download
@ -229,13 +230,8 @@ PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
"--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^
"$Shortcut.Save()"
:: Default shortcut should start default profile
PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%ProgramData%\Microsoft\Windows\Start Menu\Programs\OBS Studio\OBS Studio (64bit).lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^
"$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^
"$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^
"$Shortcut.Save()"
:: Allow system to go in sleep mode
CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat skip
:: Allow system to go in sleep mode when OBS is running
powercfg -requestsoverride process obs64.exe display system awaymode
ECHO Fais un tour des parametres Windows, apres avoir fait toutes les mises a jour disponible sur le PC.