Code: Select all
; *********************** shortcut to automatically reduce the font size (at 6) in google docs
#IfWinActive ahk_exe chrome.exe ; the shortcut will only work on chrome
^-:: ;you can use any of these: Alt(!) CTRL(^) shift(+) win(#)
click, 512, 177 ; to find the position of the mouse use the "relative" position of "window spy" tool
sleep 100 ; buggy if it goes too quick
send 2 {Backspace} ; clear the text field
sleep 100
Send, 6 ; set the new size
sleep 100
send {ENTER}
return
; **************************************