diff --git a/windows11.bat b/windows11.bat index 84582bf..aed4822 100644 --- a/windows11.bat +++ b/windows11.bat @@ -374,12 +374,9 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/Re PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'" :: Setup the autostart of shadowplay -SCHTASKS /Create /TN "OBS Shadowplay" ^ +SCHTASKS /Create /RU "%USERNAME%" /SC ONLOGON /TN "OBS Shadowplay" ^ /TR "'%LOCALAPPDATA%\start_obs_as_shadowplay.bat'" ^ - /SC ONLOGON ^ - /RU "%USERNAME%" ^ - /RL HIGHEST ^ - /F + /F /RL HIGHEST :: Allow system to go in sleep mode when OBS is running POWERCFG /REQUESTSOVERRIDE PROCESS obs64.exe DISPLAY SYSTEM AWAYMODE