Advertisement
Guest User

Simple Windows Zoom In/Out AutoHotKey Script

a guest
Oct 17th, 2017
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. ; This is a simple AutoHotKey script which, when run, will allow you to
  2. ; press the ALT key plus the TILDE key (` or ~) to zoom your screen in
  3. ; or out using Windows' Accessibility Magnifier tool: default Windows
  4. ; Shortcuts that this script engages are: WIN+ (Windows plus = or + button),
  5. ; or WIN- (Windows plus the MINUS key, - or _)
  6. ;
  7. ;
  8. ;
  9. count = 1 ; Count 1 = Zoomed in, Count 2 = Zoomed out
  10.  
  11.  
  12. !`:: ;Indicates pressing ALT (!) plus TELDE (` or ~)
  13. If count = 1
  14. {
  15. SendInput #{=} ; SENDS Windows Key plus + to zoom in
  16. count = 2 ; Sets the count to 2
  17. Return
  18. }
  19. Else If count = 2 ; Count 2 zooms back out again
  20. {
  21. SendInput #{-} ; SENDS Windows Key plus - key to zoom back out again
  22. count = 1 ; Resets the count to 1, toggling functionality
  23. Return
  24. }
  25. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement