Created
February 12, 2025 13:45
-
-
Save martinwilco/2b5cee4a73b905fad2faf27e488c0732 to your computer and use it in GitHub Desktop.
Fix blurry applications in Windows 10/11 by changing the application's high DPI settings via context menu
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
; Problem: Some applications may appear blurry in Windows 10/11 when system scaling is other than 100% | |
; Solution: Make the application override the system setting via Properties -> Compatibility -> Change high DPI settings (inconvenient) | |
; What this script does: Adds a context menu item for .exe and .lnk files to quickly change the application's high dpi settings | |
; How to use: Right-click on blurry .exe or .lnk -> High DPI scaling override -> Application/System/System (enhanced)/Reset | |
; MIT License | |
; Copyright © 2025 martinwilco, https://gist.github.com/martinwilco | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI] | |
"MUIVerb"="High DPI scaling override" | |
"Icon"="%SystemRoot%\\System32\\shell32.dll,15" | |
"Position"="Bottom" | |
"Subcommands"=hex(2):00,00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell\Application] | |
"Icon"="%SystemRoot%\\System32\\imageres.dll,299" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell\Application\command] | |
@="REG ADD \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /t REG_SZ /d \"~ HIGHDPIAWARE\" /f" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell\System] | |
"Icon"="%SystemRoot%\\System32\\shell32.dll,314" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell\System\command] | |
@="REG ADD \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /t REG_SZ /d \"~ DPIAWARE\" /f" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell\System (enhanced)] | |
"Icon"="%SystemRoot%\\System32\\shell32.dll,314" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell\System (enhanced)\command] | |
@="REG ADD \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /t REG_SZ /d \"~ GDIDPISCALING DPIUNAWARE\" /f" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell\zReset] | |
"MUIverb"="Reset" | |
"Icon"="%SystemRoot%\\System32\\imageres.dll,256" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\FixHighDPI\shell\zReset\command] | |
@="REG DELETE \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /f" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI] | |
"MUIVerb"="High DPI scaling override" | |
"Icon"="%SystemRoot%\\System32\\shell32.dll,15" | |
"Position"="Bottom" | |
"Subcommands"=hex(2):00,00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell\Application] | |
"Icon"="%SystemRoot%\\System32\\imageres.dll,299" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell\Application\command] | |
@="REG ADD \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /t REG_SZ /d \"~ HIGHDPIAWARE\" /f" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell\System] | |
"Icon"="%SystemRoot%\\System32\\shell32.dll,314" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell\System\command] | |
@="REG ADD \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /t REG_SZ /d \"~ DPIAWARE\" /f" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell\System (enhanced)] | |
"Icon"="%SystemRoot%\\System32\\shell32.dll,314" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell\System (enhanced)\command] | |
@="REG ADD \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /t REG_SZ /d \"~ GDIDPISCALING DPIUNAWARE\" /f" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell\zReset] | |
"MUIverb"="Reset" | |
"Icon"="%SystemRoot%\\System32\\imageres.dll,256" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\lnkfile\shell\FixHighDPI\shell\zReset\command] | |
@="REG DELETE \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment