Navigating the project creation screens - help needed

Hello!

I am trying to find a new ahk process because I’m unable to get the script mentionnent in my other thread to work reliably. Working within the project creation screens would also save us a few steps so it would be an improvement.

Here’s the process I’m looking for:

Manual steps:

- Click on New Project.

- Fill out the One Step screen using a Project Template and add the files.é

AHK needed

Once this is done, I would like to use AHK to

- navigate to the Translation Resources screen (this is my problematic step)

- Move to All Language Pairs > Translation Memory > Update

- Move to the first custom field

- Open the text box

- Copy the content of the clipboard

- Close the text box 

Trados Studio screenshot showing the Translation Resources screen with a focus on the Field Values section under All Language Pairs > Translation Memory > Update. A text box is open for editing.


Once I get to the Translation Resources screen, I can do the rest with the keyboard, but I can’t find any way to open the Translation Resources screen with AHK from the One Step screen. Mouse coordinates is not an option as I want to share the script with several project managers.

Any idea? Thanks for your help!



Generated Image Alt-Text
[edited by: Trados AI at 4:24 AM (GMT 0) on 5 Mar 2024]
emoji
Parents Reply
  • Thanks ! That definitely works manually, but I can’t figure out how to script the Alt+Down command. I Don't know if I’m not writing it correctly or if it’s just not working.

    I tried:

    Send !{Down} (Nothing happening)

    Send {Alt Down} (which I then saw is just holding down the Alt key)

    Send {Alt}{Down} (pressed ALT and a menu opened)


    What would be the correct line?

    EDIT:

    Send !{Down} works by itself, but not in the script.

    Behaviour is the same as with F2; focus is on the right field, manual keys work fine, but within the script Nothing happens at that step:

    ^!n::
    Send !n
    Sleep 200
    Send !n
    Sleep 500
    Send +{tab 3}
    Sleep 100
    Send Tr
    Sleep 100
    Send U
    Sleep 100
    Send {Tab 2}
    Sleep 500
    Send !{Down}

    return

    I really Don't understand this.

Children
  • Hi

    From what I recall, "Send !{Down}" looks correct for AHK.

    Can you try a simple test using AHK to execute just the single command "Send !{Down}", that is, remove everything from your macro except that single command.

    Then manually move the cursor to the field before triggering AHK, which will now just execute the "Send !{Down}" command.

    If this still doesn't work, then just to be sure something else is not happening perhaps you could move the cursor to a target segment in Editor view, try manually typing Alt-Down and then see whether your AHK macro (i.e. just "Send !{Down}") has the same effect.

    If "Send !{Down}" works in Editor view (I expect this will be the case) but not in your entry field, then the field is probably still losing focus.