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 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.......
Hi, I use Studio 2019 and have just installed the AutoHotKey Manager plugin (and also the Microsoft program mentioned here: community.sdl.com/.../3171.ahk-plugin), but I cannot get it to work. I have added 2 scripts which I found on other Studio support pages: #IfWinActive ahk_exe SDLTradosStudio.exe ;------------------------------------------------------------------------------ ;Go to next segment ;------------------------------------------------------------------------------ ^{Down}:: Send ^{PgDn} Send {Down} Send ^{PgUp} return and #IfWinActive ahk_exe SDLTradosStudio.exe ;------------------------------------------------------------------------------ ;Go to previous segment ;------------------------------------------------------------------------------ ^{Up}:: Send ^{PgUp} Send {Up} Send ^{PgDn} return Their effect should be to enable Ctrl+Up/Down to move one segment up or down in a text (regardless of whether or not the segment is confirmed or not - for some reason, the default Ctrl+Up/Down keyboard shortcuts in Studio jumps to next/previous unconfirmed segment even though this does not seem to be the intended behaviour), but they do not work. I even disabled the default Ctrl+Up/Down shortcuts in Studio's settings in order to avoid conflicts, but this did not change anything. Can anyone help with this, please? Of course, if anyone can tell me how to get the "normal" Studio shortcuts for "Move to Next/Previous Segment" to do exactly this rather than moving to next/previous unconfirmed segment, that would be great, although I would also like to get AutoHotKey Manager to work! Thanks a lot in advance. Best regards, Dennis
Hello Dennis Boffy Try these which I use all the time: ;------------------------------------------------------------------------------ ; Move to next segment ;------------------------------------------------------------------------------ #IfWinActive SDL Trados Studio !right:: Send, {ctrl down}{pgdn}{ctrl up} Send, {down} Send, {ctrl down}{pgup}{ctrl up} Return #IfWinActive ;------------------------------------------------------------------------------ ; Move to previous segment ;------------------------------------------------------------------------------ #IfWinActive SDL Trados Studio !left:: Send, {ctrl down}{pgup}{ctrl up} Send, {up} Send, {ctrl down}{pgup}{ctrl up} Return #IfWinActive Seems odd... but never fails for me.
To write code is not so easy work. You have to try to cover all possible cases. In this code, you missed two of them. Both of them are related with silly bug of SDL Trados Studio 1/2 You are at segment number "1" and AHK code goUp executed. 2/2 You are at the last segment number and AHK code goDown executed. Fortunately, AHK is just outsider of SDL Trados Studio so it doe not make any kind of fatal error. If you executed same action from inside of SDL Trados Studio (PlugIn) you will regret. SDL should fix this part. Block the Orange numberless segments (Top and Bottom segments). regards
[EDIT]
There is No way to achieve this goal perfectly through AHK. Because AHk is blind to SDL's segment (I told you, AHK is just outsider...)
But, If you use PlugIn, it is so easy and PERFECT. right ?
It is very strange to me, why any customer never complained about this? This so simple and basic function to be offered by SDL. Not through this kind of amateur codes but by professional engineers touch.
and
It is some rare cases though, You have to consider.
I have checked with simple AHK codes.
It jumps "numberless segs" sometimes and the others visited.
I can not figured out reasonable logic from there.
But, If you use PlugIn, it works perfectly. I mean, just visits numbered segments.
Do you want to visit numberless segs too ? I do not know. Looks like PlugIn is Not ready to do it properly too.
I guess, SDL should try to remove this numberless segments.
Hi Dennis Boffy, Actually, I cannot remember when Ctrl+Up/Down behaved in any way other than jumping to next/previous unconfirmed segment. It is normal behavior since SDL Trados Studio 2014 as a minimum.What regards your script, most probably it 'does not work' because you expect a different effect. This script is for Page Up and Page Down buttons, not for Ctrl+Up/Ctrl+Down.I borrowed this script from Nora Diaz (2 lines look different from yours, but your script mentions PgUp and PgDn too, then why do you expect any effect from pressing Ctrl+Up/Down?):#IfWinActive ahk_exe SDLTradosStudio.exe;------------------------------------------------------------------------------;Go to next segment;------------------------------------------------------------------------------PgDn::Send ^{PgDn}Send {Down}Send ^{PgUp}return#IfWinActive ahk_exe SDLTradosStudio.exe;------------------------------------------------------------------------------;Go to previous segment;------------------------------------------------------------------------------PgUp::Send ^{PgUp}Send {Up}Send ^{PgDn}return
It works fine. With Page Up / Page Down buttons
Kelly Edward said: There is No way to achieve this goal perfectly through AHK.
There is No way to achieve this goal perfectly through AHK.
Who told you that? The PgUp/PgDn script works well no matter what segment you are at.
I guess you put your computer speaker OFF Don't you hear "Ding" sound ? when you try to "PgUp" at the first segment and try to "PgDn" at the last segment ? or you just enjoy the irritating "Ding" sound.
That "Ding" means, usually, an Error.
Paul said:!right::That means Alt+right arrow key!left::Alt+left arrow key This might be useful for you:www.autohotkey.com/.../Tutorial.htm
For me either. Thank you Paul.