Sign in to follow this  
Followers 0
mpcluever

Clipboard Sharing

2 posts in this topic

I use a lot of virtual PCs on my computer. They'll all running AutoIt scripts and occasionally use the clipboard so I don't have them sharing the clipboard out to the host PC.

However, occasionally I do want to copy something from one to another. I whipped up a script that copies the clipboard to a shared text file and another that reads that text file and puts it in the clipboard. However, that's only good for text where it's mostly spreadsheet ranges that I'm looking to copy. Is there a better way to dump the contents of the clipboard to a file and then read that file back into the clipboard?

Share this post


Link to post
Share on other sites



Just a thought... you might want to have a script looking at your text file periodically looking for changes. Then if your script notices a change, it would read the contents and load them into the clipboard. That would be better than launching your 2nd script manually every time you need to update the clipboard.

Also your system will work ok if you only process text. You might want to process other data formats. If you copy and paste pictures, that won't work. For that, have a look at the clipboard management functions in the help contents.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0