Skip to content

Instantly share code, notes, and snippets.

@smithrobs
Created November 27, 2024 14:51
Show Gist options
  • Save smithrobs/c5dd2b22c20e02db9015c7b5086b1024 to your computer and use it in GitHub Desktop.
Save smithrobs/c5dd2b22c20e02db9015c7b5086b1024 to your computer and use it in GitHub Desktop.
Quick-n-dirty AutoHotKey script to automatically set the Windows 10 text size to max
#Requires AutoHotkey v2.0
; open display settings
Send "#u"
if WinWait("Settings", ,5)
{
Sleep 5000
; set to lowest
Send "{Tab}{Tab}{Home}"
Sleep 1000
; make effective
Send "{Tab}{Space}"
Sleep 35000
; activate settings window & close
WinActivate("ahk_class ApplicationFrameWindow")
Sleep 1000
WinClose
; open win again
Send "#u"
if WinWait("Settings", ,5)
{
Sleep 5000
Send "{Tab}{Tab}{End}"
Sleep 1000
; make effective
Send "{Tab}{Space}"
Sleep 35000
; activate settings window & close
WinActivate("ahk_class ApplicationFrameWindow")
Sleep 1000
WinClose
MsgBox("DONE")
}
else
MsgBox("Timeout waiting for settings")
}
else
MsgBox("Timeout waiting for settings")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment