Monitor DPI Scaling: AutoHotkey v2 Hotkeys to Change Display Scaling

Changing display scaling in Windows means opening Settings, finding Display, picking the monitor, then picking the scale.

Do that a few times a day and it gets old.

How about you? Do you bump the scaling up for presentations or screen recordings, then back down after?

Monitor DPI Scaling gives you two AutoHotkey v2 scripts that change it with a hotkey instead. 😊

Two AutoHotkey v2 scripts for changing monitor DPI scaling

Video: two AHK scripts to change your monitor's DPI scaling
Watch it in action on YouTube

Script 1: A Hotkey per Monitor and Scale


Monitor Scaling.ahk lets you build a list of hotkeys. Each one sets one monitor to one scale.

In the window you:

  • Press a hotkey: tick the Win box if you want the Win key in it
  • Pick a monitor: Monitor 1, Monitor 2 and so on, or ActiveDisplay for whichever one the mouse is on
  • Pick a scale: Recommended, 100%, 125%, 150% or 175%

Click Add Configuration, then Save. Your list is saved to DisplayScale.ini.

Script 2: Scale Whatever Monitor Your Mouse Is On


ActiveMonitorScaling.ahk skips the monitor choice. You just pair hotkeys with scales.

Press one and it scales the monitor your mouse is on. It starts quietly in the tray, and “Open Gui” brings the window back.

No clicking through Settings: both scripts call the Windows display API directly, using a setDPI function by FuPeiJiang.

Your mouse pointer goes back to where it was after the change.

What’s in the Download


  • DPI Scaling folder: Monitor Scaling.exe, its AutoHotkey v2 source, and a sample DisplayScale.ini
  • Active Monitor DPI Scaling folder: ActiveMonitorScaling.exe, its AutoHotkey v2 source, and a sample ActiveDisplayScale.ini

The sample files map Win+Numpad0, Win+Numpad1 and Win+Numpad2 to 100%, 125% and 150%. Change them to whatever you like.

Requirements: Windows. Each exe runs on its own.

To run a script instead, you need AutoHotkey v2. Keep each .ini file and the lib folder next to it.

Get Monitor DPI Scaling


Monitor DPI Scaling is $4.99. You get both tools, as exe and full source.

One thing I’ve learned: if you change a setting more than once a week, it deserves a hotkey.

Now display scaling has its own. ⚡

Joe

Comments are closed.