Created
March 11, 2024 10:19
-
-
Save darkdex52/efee882232406f7e6ce1f18baf1bbcb0 to your computer and use it in GitHub Desktop.
Artemis/OpenRGB reboot batch script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM Define process names | |
set "OPENRGB_PROCESS=OpenRGB.exe" | |
set "ARTEMIS_PROCESS=Artemis.UI.Windows.exe" | |
REM Terminate OpenRGB and Artemis processes | |
echo Terminating OpenRGB and Artemis processes... | |
taskkill /f /im "%OPENRGB_PROCESS%" >nul 2>&1 | |
taskkill /f /im "%ARTEMIS_PROCESS%" >nul 2>&1 | |
REM Start the scheduled task named "OpenRGB" | |
echo Starting scheduled task "OpenRGB"... | |
schtasks /run /tn "OpenRGB" | |
REM Loop until OpenRGB is started | |
:LOOP | |
tasklist /fi "imagename eq %OPENRGB_PROCESS%" | find /i "%OPENRGB_PROCESS%" >nul | |
if errorlevel 1 ( | |
echo OpenRGB is not running. Waiting for it to start... | |
timeout /t 5 /nobreak >nul | |
goto LOOP | |
) else ( | |
echo OpenRGB is running. Starting Artemis after 10 seconds... | |
timeout /t 10 /nobreak >nul | |
) | |
REM Start Artemis | |
echo Starting Artemis... | |
start /min "" "C:\Program Files\Artemis\Artemis.UI.Windows.exe" | |
echo Artemis started successfully. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make a scheduled task called OpenRGB with launch parameters --server --startminimized. No trigger, just "allow on demand" on.