Skip to content

Instantly share code, notes, and snippets.

@mark05e
Last active April 25, 2026 13:28
Show Gist options
  • Select an option

  • Save mark05e/a781189213420fc6721a6d031d2fab20 to your computer and use it in GitHub Desktop.

Select an option

Save mark05e/a781189213420fc6721a6d031d2fab20 to your computer and use it in GitHub Desktop.
ControlMyMonitor batch presets

ControlMyMonitor Batch Scripts

This gist contains Windows batch files for setting monitor brightness and contrast presets using ControlMyMonitor.

Included presets:

  • 10
  • 25
  • 50
  • 75
@echo off
setlocal
set "CMM=%~dp0ControlMyMonitor.exe"
set "BRIGHTNESS=10"
set "CONTRAST=25"
if not exist "%CMM%" (
echo ControlMyMonitor.exe was not found in:
echo %~dp0
pause
exit /b 1
)
echo Setting Primary monitor brightness=%BRIGHTNESS% contrast=%CONTRAST%...
"%CMM%" /SetValue Primary 10 %BRIGHTNESS% /SetValue Primary 12 %CONTRAST%
echo Setting Secondary monitor brightness=%BRIGHTNESS% contrast=%CONTRAST%...
"%CMM%" /SetValue Secondary 10 %BRIGHTNESS% /SetValue Secondary 12 %CONTRAST%
echo Done.
endlocal
@echo off
setlocal
set "CMM=%~dp0ControlMyMonitor.exe"
set "BRIGHTNESS=25"
set "CONTRAST=30"
if not exist "%CMM%" (
echo ControlMyMonitor.exe was not found in:
echo %~dp0
pause
exit /b 1
)
echo Setting Primary monitor brightness=%BRIGHTNESS% contrast=%CONTRAST%...
"%CMM%" /SetValue Primary 10 %BRIGHTNESS% /SetValue Primary 12 %CONTRAST%
echo Setting Secondary monitor brightness=%BRIGHTNESS% contrast=%CONTRAST%...
"%CMM%" /SetValue Secondary 10 %BRIGHTNESS% /SetValue Secondary 12 %CONTRAST%
echo Done.
endlocal
@echo off
setlocal
set "CMM=%~dp0ControlMyMonitor.exe"
set "BRIGHTNESS=50"
set "CONTRAST=50"
if not exist "%CMM%" (
echo ControlMyMonitor.exe was not found in:
echo %~dp0
pause
exit /b 1
)
echo Setting Primary monitor brightness=%BRIGHTNESS% contrast=%CONTRAST%...
"%CMM%" /SetValue Primary 10 %BRIGHTNESS% /SetValue Primary 12 %CONTRAST%
echo Setting Secondary monitor brightness=%BRIGHTNESS% contrast=%CONTRAST%...
"%CMM%" /SetValue Secondary 10 %BRIGHTNESS% /SetValue Secondary 12 %CONTRAST%
echo Done.
endlocal
@echo off
setlocal
set "CMM=%~dp0ControlMyMonitor.exe"
set "BRIGHTNESS=75"
set "CONTRAST=75"
if not exist "%CMM%" (
echo ControlMyMonitor.exe was not found in:
echo %~dp0
pause
exit /b 1
)
echo Setting Primary monitor brightness=%BRIGHTNESS% contrast=%CONTRAST%...
"%CMM%" /SetValue Primary 10 %BRIGHTNESS% /SetValue Primary 12 %CONTRAST%
echo Setting Secondary monitor brightness=%BRIGHTNESS% contrast=%CONTRAST%...
"%CMM%" /SetValue Secondary 10 %BRIGHTNESS% /SetValue Secondary 12 %CONTRAST%
echo Done.
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment