#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^q::
;Toggle to the source side and select up to the end of the line
Send, {F6}
Send, +{End}
;Toggle to the target side and select up to the end of the line
Send, {F6}
Send, +{End}
;Quickly add the selections to the default termbase
Send, ^+{F2}
Sleep, 1000
;Go to the next segment
Send, ^{Enter}
return
*) Daredevils can add a loop to the macro.
*) I guess that multi-line segments will need something like +{EndOfSegment} instead of +{End}?
Caveats:
- The macro stops at identical targets (probably at identical sources too ...).
- It doesn't handle synonyms correctly (you'll have to prepare the input manually).
Changed the Title to something more appropriate
[edited by: Hans Lenting at 9:30 AM (GMT 1) on 27 May 2022]