Tuesday, August 10, 2010

AHK script for translating MemoQ segment with GT4T

Here is a script written in AHK for translating entire segments in  MemoQ with the help of Google Translate by means of the program GT4T (http://gt4t.net/gt4t_en/). The script assumes that you have mapped the key combination ALT+J to translate the selected words in GT4T, but of course this could be changed accordingly. Just press ALT+X and the segment will be translated via Google Translate.

; Memoq
 SendMode Input
 !x::
 Send ^+s
 Sleep, 150
 Send ^a
 Sleep, 150
 Send !j
 return