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,

    I meant disabling the scripts.

    Anyway, I checked your scripts and they are quite fine, but you may need to add this line, just after each Send line:

    Sleep 100

    For example, after the first Send line:

    Send {Ctrl down}{PGDN}{ctrl up}

    You need to add this Sleep line below:

    Sleep 100

    Same thing with the other Send lines (one Sleep line after each Send line).

    Try with just one script and check if it works. If so, add the Sleep line to the 2 remaining scripts and check them as well.

    PS.: This Sleep line sets the number of milliseconds to wait. It maybe neccessary for you, or even increase it to 200 ms. Your scripts will be a bit slower, but you might even notice any delay at all.

    Please try and let me know,

Children