Script for batch tasks

I've been trying to create a script to run batch tasks by emulating the keyboard shortcuts, but I'm getting nowhere. Can anyone point me in the right direction (whichever direction that is)? E.g. I'd like to run Analyse Files, auto-select 'Finish', then 'Close', then 'Yes' (to reopen the file) and then go to first untranslated segment. Maybe trying to reinvent a wheel here?

Thanks,

Olly

Parents Reply
  • If you promise not to laugh... I inserted all the sleeps because my device tends to respond too fast otherwise. The long sleeps are to give Studio time to run the operation. As I said, it does nothing much... One of the many issues might be the focus on the current window (to be able to activate the Finish button using the Enter key)?

    #IfWinActive SDL Trados Studio
    ^a::
    Send !h
    Sleep 50
    Send !b
    Sleep 50
    Send {down}
    Sleep 50
    Send {Enter}
    Sleep 5000
    Send {Enter}
    Sleep 5000
    Send {Enter}
    Sleep 5000
    Send {Enter}
    Sleep 50
    Send !y
    Sleep 50
    Send ^{Enter}
    Return
    #IfWinActive
Children