autohotkey not working in 2019?

Hi, sorry for this probably really stupid question, but after having installed autohotkey and the ahk manager (for 2019) according to the instructions in the Studio help file (installed autohotkey for 32 bit and that other windows app thingy), and having manually copied some of the scripts available (primarily interested in the merge segments script), I'm not getting any joy. The one to go straight to next or previous segment (alt+ right/left arrow) worked just after I created it, but now no longer. I'm sure I must have read over something important, but I can't find it... I'm on Studio 2019 and the scripts look like this:AutoHotkey Plugin window showing a script for merging adjacent segments in Trados Studio with a description and script content visible.



Generated Image Alt-Text
[edited by: Trados AI at 4:04 AM (GMT 0) on 5 Mar 2024]
emoji
Parents Reply
  • Unknown said:

    but I still can't get that merge segments script to work; do you have any idea on that? Pressing ctrl+m just does this:

    Screenshot of Trados Studio interface showing an error in the merge segments script with the keyboard shortcut ctrl+m activated, but not completing the merge action.

    It looks as though your script is not finshing as you have activated the keyboard mechanism for selecting segments and then not finished whatever your script did.  I use this one for merging segments which just automates the keyboard steps:

    ;------------------------------------------------------------------------------
    ; Merge adjacent segments
    ;------------------------------------------------------------------------------
    #IfWinActive SDL Trados Studio
    ^m::
    Send !{Space}
    Send !{Down}
    Send !{Space}
    Send ^!s
    Return
    #IfWinActive

    Is this the one you are using?  Try walking through the commands manually to make sure they are working for you.  I think the likely scenario is that you are trying to merge across a paragraph break and your project is not set up to allow this.  So it gets stuck at the last action you carried out which is selecting the segments.

    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

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:05 AM (GMT 0) on 5 Mar 2024]
Children