AutoHotkey v2 script that toggles HDR in Windows 10 using HDRSwitch by cocafe
- Detects current HDR state on launch
- Toggles HDR on/off via tray click, tray menu, or hotkey (Ctrl + Alt + H)
- Dynamic tray icon updates based on HDR status
- Comes with a precompiled
HDRToggler.exefor users who don’t want to install AutoHotkey - Comes with a precompiled
HDRSwitch.exefor thos who can't or won't compile C, C++
- Windows 10 (Windows 11 users have other options built into the OS and on GitHub)
HDRSwitch.exe(precompiled.exeincluded here for convenience)- HDR-capable monitor (not really required to run but you'll just be toggling hot air otherwise)
- Download this repo and place
HDRSwitch.exein the same folder. - Run either:
HDRToggler.ahk(if you have AutoHotkey v2 installed)HDRToggler.exe(if you don’t want AutoHotkey — it’s precompiled for convenience)
- Use Ctrl + Alt + H, left-click the tray icon, or use right-click tray menu to toggle HDR.
- Create shortcut and place in startup folder to run on windows boot.
- This script creates a small 1KB file [
hdrlog.txt] to read monitor status which is overwritten with each toggle (no bloat). - This script expects that Monitor 0 (based on output from "HDRSwitch.exe --list") is your HDR capable monitor. Check
hdrlog.txtand modify script accordingly
- HDR detection & control powered by
HDRSwitchby @cocafe - Special thanks to the Windows 10 UI team… for making HDR automation simple :-P
- Troubleshooting and polishing by chatGPT
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
Fork it, improve it, give it weird tray icons. Just don’t resell it as a firmware update.
- If you encounter any issues or have suggestions for improvements, please open an issue. We appreciate your feedback and are always looking to improve the tool.
Enjoy and customize to your liking!