F11:: setkeydelay, 30, 30 clipboard := "" ; Start off empty to allow ClipWait to detect when the text has arrived. Send ^c ClipWait ; Wait for the clipboard to contain text. Send {Tab} Send {Tab} Send {Tab} Send +{insert} Send {Tab} Send {Tab} Send {Tab} Send {Tab} Send {Tab} Send {Tab} Send {Tab} Send {Tab} StringReplace, Clipboard, Clipboard, <, _XXXX_, All StringReplace, Clipboard, Clipboard, >, -YYYY-, All Send {Tab} Send, !{tab} Send +{insert} return F12:: setkeydelay, 30, 30 Send {Tab} Send {Tab} Send {Tab} Send {Tab} Send {Tab} Send ^a clipboard := "" ; Start off empty to allow ClipWait to detect when the text has arrived. Send ^c ClipWait ; Wait for the clipboard to contain text. Send, +{tab} Send, +{tab} Send, +{tab} Send, +{tab} Send, +{tab} Send, +{tab} Sleep 500 Send {NumpadEnter} Sleep 500 StringReplace, Clipboard, Clipboard, _XXXX_, <, All StringReplace, Clipboard, Clipboard, -YYYY-, >, All StringReplace, Clipboard, Clipboard, `rTranslated with www.DeepL.com/Translator (free version)%A_Tab%, , All Sleep 500 Send, !{tab} Sleep 500 Send +{insert} return