Move from segment to segment

Here is a simple script that you can use to navigate a document from segment to segment using Alt+Left and Alt+Right

// Move to next segment
!right::
Send, {ctrl down}{pgdn}{ctrl up}
Send, {down}
Send, {ctrl down}{pgup}{ctrl up}
Return

// Move to previous segment
!left::
Send, {ctrl down}{pgup}{ctrl up}
Send, {up}
Send, {ctrl down}{pgup}{ctrl up}
Return

Parents
  • I like this... works nicely irrespective of segment statuses or size of the TU. Thanks for sharing. I changed it slightly because it threw an error for me and because I started separating the scripts to avoid conflicts with other applications:

    ;------------------------------------------------------------------------------
    ; Move to next segment
    ;------------------------------------------------------------------------------
    #IfWinActive SDL Trados Studio
    !right::
    Send, {ctrl down}{pgdn}{ctrl up}
    Send, {down}
    Send, {ctrl down}{pgup}{ctrl up}
    Return
    #IfWinActive

    ;------------------------------------------------------------------------------
    ; Move to previous segment
    ;------------------------------------------------------------------------------
    #IfWinActive SDL Trados Studio
    !left::
    Send, {ctrl down}{pgup}{ctrl up}
    Send, {up}
    Send, {ctrl down}{pgup}{ctrl up}
    Return
    #IfWinActive

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Thanks for the tweaks. I should go beyond the basics of AutoHotKey, but I still haven't found the time.
    Just a sidenote: Sometimes, when pressing Alt+Left or Alt+Right (or any other shortcut involving Alt) I end up with the 'tooltips' in the Ribbon showing (i.e. the numbers/letters I should press to access areas on the Ribbon—I don't know the correct term). I have noticed this only in Trados Studio, so I guess there is not anything wrong with the way I press the key combos.
    Any ideas? Has anyone else noticed this? It's a bit annoying, as it requires me to press Alt again or press Escape before the cursor starts blinking in the grid again.

Reply
  • Thanks for the tweaks. I should go beyond the basics of AutoHotKey, but I still haven't found the time.
    Just a sidenote: Sometimes, when pressing Alt+Left or Alt+Right (or any other shortcut involving Alt) I end up with the 'tooltips' in the Ribbon showing (i.e. the numbers/letters I should press to access areas on the Ribbon—I don't know the correct term). I have noticed this only in Trados Studio, so I guess there is not anything wrong with the way I press the key combos.
    Any ideas? Has anyone else noticed this? It's a bit annoying, as it requires me to press Alt again or press Escape before the cursor starts blinking in the grid again.

Children