Hotkeys used within AHK scripts (such as ^a, ^c, etc.) don't seem to work any more after I installed Trados Studio 2021 SR2 - 16.2.8.9097 yesterday. Most of my AHK scripts no longer work.
Hotkeys used within AHK scripts (such as ^a, ^c, etc.) don't seem to work any more after I installed Trados Studio 2021 SR2 - 16.2.8.9097 yesterday. Most of my AHK scripts no longer work.
Sounds very odd. Can you share one small example that doesn't work, so we can at least see if there is anything in the script that might be affected by this?
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
Hi Paul:
See this test script as an example, which is an excerpt from a longer script:
;-----------------------------
;Ctrl+Shift X
;Testing Ctrl-a, Ctrl-C
;-----------------------------
^+x::
clipboard :=
Send ^a^c
ClipWait, 2
if (ErrorLevel > 0) {
Msgbox Error=%errorlevel%
Exit
}
Msgbox %clipboard%
Return
This works correctly in MS Word but not in Trados Studio 2021 SR2 - 16.2.8.9097. But it has worked correctly in Studio as well before.
I'm really at a loss what might be wrong here.
Kind regards,
-Friedrich
I'm not sure either. I tested it in Studio and presume this is what you expect?
I guess you don't have any Studio keyboard shortcuts that get in the way?
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
Exactly, that's the result I expect. I suspected that the problem is local to my PC because nobody has reported the same problem so far. But what may it be? I did not change the default hotkeys Ctrl-a and Ctrl-c in Studio, and they work as expected when I use them manually.
As this works properly in MS Word, for example, the problem must be associated with some setting in Studio. But what can it be?
Just noticed something Samuel Murray mentioned on ProZ because his scripts stopped working.
the taskbar title changed. It's no longer "SDL Trados Studio", but just "Trados Studio".
You didn't have anything in your script that used this but I wonder if you have set anything to identify the environment in your overall scripts that could be looking for the old name?
I use this in many of my scripts as they are specific to Trados Studio:
#IfWinActive SDL Trados Studio
And that actually still works... but perhaps there is something else in the way you use AHK?
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
Whether it would still work depends on whether AHK requires the taskbar title to be exact or just contain any of the words. In my earlier AU3 scripts, I used exact matching, but in my later scripts, I learnt to use inexact matching, so that just "Trados" would match a title of e.g. "SDL Trados Studio".
Whether it would still work depends on whether AHK requires the taskbar title to be exact or just contain any of the words. In my earlier AU3 scripts, I used exact matching, but in my later scripts, I learnt to use inexact matching, so that just "Trados" would match a title of e.g. "SDL Trados Studio".