Skip to content

valekseev/SetScale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SetScale

AutoHotkey scripts that change the per-monitor Windows display scale via DisplayConfig device-info packets (undocumented types -3/-4). Works on Windows 10/11 and applies immediately (no sign-out), though some apps may need a restart.

Supported versions

  • setscale_v1.ahk - Autohotkey v1.1
  • setscale_v2.ahk - Autohotkey v2.0

Supported scale steps

Windows exposes fixed steps. These scripts accept only the following values:

100, 125, 150, 175, 200, 225, 250, 300, 350, 400, 450, 500

Notes

  • Monitor index follows the order of active paths; this usually matches the order you see when pressing Identify in Settings -> System -> Display.
  • The change is applied immediately for the target display. Some apps may need to be restarted to re-flow correctly.

hotkeys

any version

#1::SetScale(100)
#2::SetScale(150)

v2 example

#Requires AutoHotkey v2.0
; Cycle common steps on primary monitor with Alt+= / Alt+-
Steps := [100,125,150,175,200,225,250]
current := 1  ; start at 100% in this example

!=::
{
    global Steps, current
    current := (current < Steps.Length) ? current+1 : Steps.Length
    SetScale(Steps[current])
}

!-::
{
    global Steps, current
    current := (current > 1) ? current-1 : 1
    SetScale(Steps[current])
}

Credits

About

AHK script to change scale (in DisplayConfig) per monitor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published