Skip to content

Instantly share code, notes, and snippets.

@darkdex52
Created March 11, 2024 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkdex52/efee882232406f7e6ce1f18baf1bbcb0 to your computer and use it in GitHub Desktop.
Save darkdex52/efee882232406f7e6ce1f18baf1bbcb0 to your computer and use it in GitHub Desktop.
Artemis/OpenRGB reboot batch script
@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.
@darkdex52
Copy link
Author

Make a scheduled task called OpenRGB with launch parameters --server --startminimized. No trigger, just "allow on demand" on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment