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
  • Hi Olly,

    You should be able to get rid of the ALT key labels (no idea what the actual name is) by adding a line like this right before the return line of your scripts:

    Send {Esc}

    So, for the first one, for example, it would look like this:

    #IfWinActive SDL Trados Studio
    !down::
    Send, {ctrl down}{pgdn}{ctrl up}
    Sleep 200
    Send, {down}
    Sleep 200
    Send, {ctrl down}{pgup}{ctrl up}
    Sleep 200
    Send {Esc}
    Return

    Please bear in mind that those ALT shortcut labels are shown whenever you press the ALT key by itself, so it's possible that they're showing because there's a bit of a delay between the time you press ALT and the DOWN arrow key which make up your hotkey.
Children