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 


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!

Top Replies

  • Try using Alt+N as this takes you through the stages screen by screen.  So using it twice takes you to the screen you want.

  • Thanks Paul, that works!

    But now I run into the same problem as I did in my previous script - Something goes wrong at the F2/paste steps.

    This is my script right now. I took out the paste steps to try to resolve this first.

    ^!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 600
    Send {F2}


    return



    All steps are working except for the last one, no matter how long I put it on sleep first. Once the script stops, F2 works perfectly to open the field.

    F2 doesn’t seem to do any other commands on my computer, it really just opens the value field.

    Any other idea? Other key combination to open the field?


  • Hi

    Instead of sending "{F2}", try sending the AHK key combination for "Alt-Down", i.e. Alt plus the down arrow key. (Sorry, I have forgotten the special characters that AHK uses :-)

    That seems to open the "Value" field on my computer.

  • 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.

  • 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.