robsc > 2025-04-01 20:45
Jean Lalonde > 2025-04-01 22:01
Jean Lalonde > 2025-04-11 14:01
Xavier > 2025-04-11 20:33
appendclip:
global ClipSaved := ClipboardAll ; Save the current clipboard content
sleep 350
Clipboard := "" ; Clear the clipboard to capture new content
Sleep 40 ; Ensure enough time for clipboard to clear
Sendinput, ^c ; Send Ctrl+C to copy the selected text
ClipWait, 1 ; Wait for clipboard to be filled with new text
if !ErrorLevel
{
NewText := Clipboard ; Get the copied text ; If text is successfully copied, append it to the clipboard
Clipboard := ClipSaved ; Restore the original clipboard content
sleep 200
Clipboard := Clipboard . "`n`n" NewText ; Append the new text to the existing content
Sleep 350 ; Allow time for clipboard to update
}
else
{
Clipboard := ClipSaved ; If no text was copied, restore the original clipboard content
tooltip, ERR! @ line# %A_LineNumber%`nYour selection was not`nappend to the Clipboard.`nPrevious Clipboard Restored.
sleep 1500
tooltip
}
returnJean Lalonde > 2025-04-16 10:32
robsc > 2025-04-19 11:36
Jean Lalonde > 2025-04-19 14:41