SDL Studio: Add tags with a single keystroke

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 854551
    • Gender:Male
  • point d’amour
SDL Studio: Add tags with a single keystroke

You need to have https://www.autohotkey.com/ for this script to work.

The script assumes that the default Ctrl+Enter shortcut is used to confirm segments. If a different shortcut is used, it needs to be replaced accordingly on the last line of the script.

Code: [Select]
;Add tags with LWin key

n:=1
return

Lwin::
if (n = 1)
Send, ^!{Right}{Esc}{Right}
else
{
Send, {Ctrl Down}{Alt Down}{Right %n%}
Sleep 200
Send, {Ctrl Up}{Alt Up}{Esc}{Right}
}
n++ ; increment n
return

~^Enter::n := 1 ;script is reset with Confirm and Move to Next Segment shortcut, tilde is needed to pass through the original action for Ctrl+Enter
https://community.sdl.com/product-groups/translationproductivity/f/autohotkey/12964/add-tags-with-a-single-keystroke

See also:
https://multifarious.filkin.com/2012/09/10/working_with_tags/
http://producthelp.sdl.com/sdl%20trados%20studio/client_en/Edit_View/Tags/EVEditingTagsInsert.htm
« Last Edit: 26 Feb, 2020, 16:54:04 by spiros »


 

Search Tools