SDL Trados Studio
SDL Trados GroupShare
SDL Trados Business Manager
SDL Trados Live
SDL MultiTerm
SDL Passolo
SDL Speech to Text
SDL Managed Translation - Enterprise
SDL MultiTrans
SDL TMS
SDL WorldServer
Translation Management Connectors
SDL LiveContent S1000D
SDL Contenta S1000D
SDL XPP
SDL Tridion Docs
SDL Tridion Sites
SDL Content Assistant
SDL Machine Translation Cloud
SDL Machine Translation Connectors
SDL Machine Translation Edge
Language Developers
Tridion Developers
Tridion Docs Developers
Xopus Developers
Community Help
SDL User Experience
Language Products - GCS Internal Community
SDL Community Internal Group
SDL Access Customer Portal
SDL Professional Services
SDL Training & Certification
Style Guides
Language Technology Partner Group
SDL Academic Partners
SDL Approved Trainers
SDL Enterprise Technology Partners
XyUser Group
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic SDL Tridion Docs User Group
SDL Tridion UK Meetup
SDL Tridion User Group New England
SDL Tridion West Coast User Group
SDL WorldServer User Group
Tridion Docs Europe & APAC User Group
Tridion User Group Benelux
Tridion User Group Ohio Valley
SDL MultiTerm Ideas
SDL Passolo Ideas
SDL Trados GroupShare Ideas
SDL Trados Studio Ideas
SDL Machine Translation Cloud Ideas
SDL Machine Translation Edge Ideas
SDL Language Cloud TMS Ideas
SDL Language Cloud Terminology Ideas
SDL Language Cloud Online Editor Ideas
SDL Managed Translation - Enterprise Ideas
SDL TMS Ideas
SDL WorldServer Ideas
SDL Tridion Docs Ideas
SDL Tridion Sites Ideas
SDL LiveContent S1000D Ideas
SDL XPP Ideas
Events & Webinars
To SDL Documentation
To SDL Support
What's New in SDL
Detecting language please wait for.......
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 neededOnce 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!
Audrey Demers
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 !nSleep 200Send !nSleep 500Send +{tab 3}Sleep 100Send TrSleep 100Send USleep 100Send {Tab 2}Sleep 600Send {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 Audrey Demers
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 Bruce Campbell! 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 !nSleep 200Send !nSleep 500Send +{tab 3}Sleep 100Send TrSleep 100Send USleep 100Send {Tab 2}Sleep 500Send !{Down}
returnI really Don't understand this.
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.