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

Reply
  • 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

Children