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 Children
  • Hi Again,
    I'm afraid this doesn't work either. What is that 'Restart Preparation' button actually supposed to do? It and the 'Results' button next to it do not respond when I click on them...
  • I tested these 2 lines:

    DetectHiddenText, Off

    WinWaitActive, Batch Processing, Restart Preparation

    and they work for me.

    You need to check your previous lines of your script, as I've seen a Send {Enter} which is wrong (you need to get the focus on the green button before pressing ENTER). Also, because the Finish batch task doesn't ask the user to re-open the SDLXLIFF, you need to delete the last lines of your script.

    Before writing any script, I'd recommend going manually through the keys/clicks that needed to be pressed. Only then write a line per key/click. If it doesn't work, check the point where the script doesn't work redo the script and try again. Tip for preparing scripts: use the SoundBeep command to know that the script is running that line. If everything is fine, delete that line to get no more beeps.

    Before using the Results button you need to select any of the tasks below (like Update or Generate). Then, you'll view more information about warnings and errors if any.

    I've never used the Restart Preparation button, but I guess that it can be useful if there are any errors during the preparation process, otherwise it's disabled. Not sure about that…