Files
SoloLobbyCreator/SoloLobbyCreator.bat
2021-05-25 16:34:59 +03:00

46 lines
1.7 KiB
Batchfile

@echo off
title SoloLobbyCreator
mode con:cols=54 lines=11
set title=SoloLobbyCreator by lzrdblzzrd
if not exist pssuspend.exe (
color 0C
title [ ERROR! ] %title%
echo.
echo ######################################################
echo # #
echo # MISSING DEPENDENCIES #
echo # 'pssuspend.exe' is required to be in #
echo # the same directory as this script! #
echo # #
echo # Exiting... #
echo # #
echo ######################################################
timeout 5 /nobreak >nul
start "" https://docs.microsoft.com/en-us/sysinternals/downloads/pssuspend
exit
) else (
color 0B
pssuspend.exe "GTA5.exe" -accepteula -nobanner >nul
for /l %%s in (10,-1,1) do (
cls.
echo.
echo ######################################################
echo # #
echo # GTA V process suspended for 10 seconds #
title [ %%s ] %title%
timeout 1 /nobreak >nul
)
title [ Done! ] %title%
echo # #
echo # Resuming the GTA V process.. #
pssuspend.exe -r "GTA5.exe" -accepteula -nobanner >nul
echo # #
echo # Deleting the accepted EULA from the registry.. #
reg delete HKEY_CURRENT_USER\SOFTWARE\Sysinternals /f >nul
echo # #
echo ######################################################
color 0A
timeout 3 /nobreak >nul
exit
)