News:

Welcome to our NEW forum! We invite you to sign up today
so it can grow to be a valuable resource to all Toolbox users!

Main Menu

Non-destructive temp clipboard cut

Started by GrahamB, June 15, 2026, 10:16:42 AM

Previous topic - Next topic

GrahamB

I know the topic title is a mouthful, lol. But here's what I mean: it's an alternative clipboard cut function that remembers the current clipboard text, but lets me cut some selected new text for a temporary paste somewhere else. Once pasted with Ctrl+V, then original text goes back into the clipboard again. So it's good for when you don't want to lose the clipboard text but do need to make a temporary cut and paste with other text. I've got it bound to Shift+Ctrl+X and it works flawlessly. You can easily adapt this to work with copying as well (just duplicate the action, change step 2 to be the copy step, and bind a hotkey to something like Shift+Ctrl+C).

(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Wait: For action hotkey to be released ""
0002 String: Assign from clipboard text ""
0003 Keyboard: Cut ""
0004 Wait: For keypresses or mouse clicks "{ctrl}v"
0005 Clipboard: Assign text "string$"
(End)

Paul (Lead Developer)


Xoannon

Doesn't work for me with Shift+Ctrl+X as the hotkey. It works with other hotkeys combos. Is this another case of it getting confused because Ctrl is part of the hotkey, so it can't cut correctly?

GrahamB

I edited my post to include the wait for hotkey step, so it should work for you now.

Xoannon

Sorry for my late reply. Yes it works now with that hotkey wait step. Thx.