use noskip instead of skip keyword + add support for blockthespot
This commit is contained in:
parent
ff15c3f3c3
commit
a160c989c1
3 changed files with 4 additions and 4 deletions
|
@ -28,5 +28,5 @@ DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL
|
||||||
ie4uinit -show
|
ie4uinit -show
|
||||||
ECHO Suppression du raccourci du bureau
|
ECHO Suppression du raccourci du bureau
|
||||||
|
|
||||||
PAUSE
|
IF NOT "%1"=="noskip" PAUSE
|
||||||
EXIT /B
|
EXIT /B
|
||||||
|
|
|
@ -15,5 +15,5 @@ PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
|
||||||
"$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^
|
"$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^
|
||||||
"$Shortcut.Save()"
|
"$Shortcut.Save()"
|
||||||
|
|
||||||
IF NOT "%1"=="skip" PAUSE
|
IF NOT "%1"=="noskip" PAUSE
|
||||||
EXIT /B
|
EXIT /B
|
||||||
|
|
|
@ -10,7 +10,7 @@ fltmc >NUL 2>&1 || (
|
||||||
:: === Install Spotify ==
|
:: === Install Spotify ==
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
|
||||||
DEL "%APPDATA%\Spotify"
|
DEL "%APPDATA%\Spotify"
|
||||||
ECHO Y| CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat"
|
ECHO Y| CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat" noskip
|
||||||
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
|
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
|
||||||
|
|
||||||
:: Start as administrator
|
:: Start as administrator
|
||||||
|
@ -230,7 +230,7 @@ PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
|
||||||
"--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^
|
"--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^
|
||||||
"$Shortcut.Save()"
|
"$Shortcut.Save()"
|
||||||
:: Default shortcut should start default profile
|
:: Default shortcut should start default profile
|
||||||
CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat skip
|
CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat noskip
|
||||||
:: Allow system to go in sleep mode when OBS is running
|
:: Allow system to go in sleep mode when OBS is running
|
||||||
powercfg -requestsoverride process obs64.exe display system awaymode
|
powercfg -requestsoverride process obs64.exe display system awaymode
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue