MS Word, how to reset display settings to its original scale
Posted: 26 Apr 2024, 03:06
I want to reset display settings to its original scale 100%.
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=82&t=129308
Code: Select all
; This script changes zoom level in Microsoft Word
#Requires AutoHotkey v2.0
#HotIf WinActive('ahk_exe WINWORD.exe')
^0:: ; CTRL-0 = Change zoom to 100%
^9:: { ; CTRL-9 = Change zoom to 110%
Static wordZoom := Map(
'0', 100
, '9', 110
)
oWord := ComObjActive('Word.Application')
Try oWord.ActiveWindow.ActivePane.View.Zoom.Percentage := wordZoom[SubStr(ThisHotkey, -1)]
Catch
MsgBox 'An error occurred while zooming the Microsoft Word window.', 'Error', 'Icon!'
}
#HotIf
Thanks, your help is really appreciatedmikeyww wrote: ↑26 Apr 2024, 05:33Change zoom level in Microsoft Word
Code: Select all
; This script changes zoom level in Microsoft Word #Requires AutoHotkey v2.0 #HotIf WinActive('ahk_exe WINWORD.exe') ^0:: ; CTRL-0 = Change zoom to 100% ^9:: { ; CTRL-9 = Change zoom to 110% Static wordZoom := Map( '0', 100 , '9', 110 ) oWord := ComObjActive('Word.Application') Try oWord.ActiveWindow.ActivePane.View.Zoom.Percentage := wordZoom[SubStr(ThisHotkey, -1)] Catch MsgBox 'An error occurred while zooming the Microsoft Word window.', 'Error', 'Icon!' } #HotIf