Created
November 27, 2024 14:51
-
-
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
This file contains 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
#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