How to clear clipboard
Moderators: Dorian (MJT support), JRL
How to clear clipboard
Is there a command to empty the clipboard? I am using a text expander program that also uses the clipboard and want a way to clear the clipboard before MS uses it. Also, how much wait time is typically required for clipboard operations? It feels sluggish compared to other functions.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: How to clear clipboard
You can't really "clear" the clipboard but you could put an empty string on it. Like this:
PutClipBoard>
Or for readability:
PutClipBoard>{""}
PutClipBoard>
Or for readability:
PutClipBoard>{""}
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- CyberCitizen
- Automation Wizard
- Posts: 721
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
Re: How to clear clipboard
Normally what I do is I GetClipBoard to a variable to save what was there first.
Do what I need with the script etc and when finish PutClipboard to put back what was there previously.
It's good scripting and you can save it as a SubRoutine etc and save it in your code snippets to make it easier to include in all your scripts etc.
But yes to clear it, do as what Marcus suggested.
Do what I need with the script etc and when finish PutClipboard to put back what was there previously.
It's good scripting and you can save it as a SubRoutine etc and save it in your code snippets to make it easier to include in all your scripts etc.
But yes to clear it, do as what Marcus suggested.
FIREFIGHTER