How to Increase/Decrease font in Editor

Many applications use CTRL + mouse wheel to increase and decrease font in the view.
 
With this little script, you can get the same behavoir in Trados Studio
 
Note: The script is ready for Spanish and English Studio UIs. If your language interface is different than English, grab the string on the left pane in Files view (Include subfolders) and get the 2 shorcuts needed (ALT+v+i+2 and ALT+v+d+2 ).
 
;------------------------------------
; INCREASE/REDUCE FONT
; CTRL + WHEEL MOUSE
;------------------------------------
; INCREASE FONT
^WheelUp::
    ; Check if CONTROL key is still pressed
    while GetKeyState("Control", P)
        Sleep, 20
    
    WinGetText, textALLTEXT, A
    if InStr(textALLTEXT,"Incluir subcarpetas") ; Spanish
    {
        SendInput !v
        SendInput a3
    }
    if InStr(textALLTEXT,"Include subfolders") ; English
    {
        SendInput !v
        SendInput i2
    }
    SendInput {Alt}    ; Back to Home tab
    SendInput {Left 3} ; Delete shortcut tooltips
return

; REDUCE FONT
^WheelDown::
    ; Check if CONTROL key is still pressed
    while GetKeyState("Control", P)
        Sleep, 20
    
    WinGetText, textALLTEXT, A
    if InStr(textALLTEXT,"Incluir subcarpetas") ; Spanish
    {
        SendInput !v
        SendInput r2
    }
    if InStr(textALLTEXT,"Include subfolders") ; English
    {
        SendInput !v
        SendInput d2
    }
    SendInput {Alt}    ; Back to Home tab
    SendInput {Left 3} ; Delete shortcut tooltips
return
Parents Reply Children