One hotkey for running three hotkeys respectively Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Bootimar
Posts: 8
Joined: 10 Aug 2022, 00:38

One hotkey for running three hotkeys respectively

Post by Bootimar » 10 Aug 2022, 01:27

Hello,
There are three actions with specific hotkeys in SDL Trados software (translation management software) that I need to perform them respectively with a single hotkey.
The actions are:
1. Copy source text to target: Ctrl+Ins
2. Select all text of the segment: Ctrl+A
3. Replace the selected text with machine translation: Ctrl+Q
The actions must be performed respectively not at the same time, like when you press these keys manually (Ctrl+Ins)+(Ctrl+A)+(Ctrl+Q).
Would you please let me know if this is possible with AutoHotKey?

Rohwedder
Posts: 7612
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: One hotkey for running three hotkeys respectively

Post by Rohwedder » 10 Aug 2022, 02:27

Hallo,
if this SDL Trados software accepts non-physical keyboard shortcuts, it should be possible.
Maybe you need to run the script as admin.

User avatar
Bootimar
Posts: 8
Joined: 10 Aug 2022, 00:38

Re: One hotkey for running three hotkeys respectively

Post by Bootimar » 10 Aug 2022, 05:23

I am not a professional user of AutoHotkey. I would appreciate it if someone could help me with the codes I have to use.

User avatar
boiler
Posts: 16902
Joined: 21 Dec 2014, 02:44

Re: One hotkey for running three hotkeys respectively  Topic is solved

Post by boiler » 10 Aug 2022, 05:41

Try this, which sends them when F10 is pressed,

Code: Select all

F10::Send, ^{Ins}^a^q

If that doesn’t work, perhaps because they are pressed too fast in succession, you could try this:

Code: Select all

F10::
	Send, ^{Ins}
	Sleep, 50
	Send, ^a
	Sleep, 50
	Send, ^q
return

User avatar
Bootimar
Posts: 8
Joined: 10 Aug 2022, 00:38

Re: One hotkey for running three hotkeys respectively

Post by Bootimar » 10 Aug 2022, 06:00

Thank you very much dear @boiler and @Rohwedder for your help.
It really works!
:dance:

Post Reply

Return to “Ask for Help (v1)”