| ; In v2, OnClipboardChange automatically makes the script stay running | |
| OnClipboardChange(AppendText) | |
| AppendText(Type) { | |
| static last_clip := "" | |
| ; Only run if the clipboard contains text (Type 1) | |
| if (Type = 1) { | |
| current_clip := A_Clipboard | |
| ; Avoid infinite loop when the script updates the clipboard | |
| if (current_clip != last_clip) { | |
| if (last_clip != "") { | |
| ; Appends new text on a new line | |
| A_Clipboard := last_clip "`r`n" current_clip | |
| } | |
| last_clip := A_Clipboard | |
| } | |
| } | |
| } | |
Xet Storage Details
- Size:
- 610 Bytes
- Xet hash:
- 8438cb0e2efddb3c57e10d62532a0d9a2da5d57ea126fe28e0845ed7d0cf31e5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.