Sign in to follow this  
Followers 0
Iznogoud

Universal Clipboard

5 posts in this topic

I want to try something if its usefull in real life.

I am trying to make a Universal Clipboard so if i copied something to the clipboard i can paste in on a other machine.

For an example i made this simple code:

FileDelete("D:\Test.txt")

$file = FileOpen("D:\Test.txt", 1)
$Clipboard=ClipGet()
FileWriteLine($file, $Clipboard)
FileClose($file)

This put the info from the clipboard to a text file and i want to make a script wich reads this text file and put it back to the clipboard or paste it directly.

So on one pc i press alt+ctrl+c (hotkey) voor putting it in the text file, somewhere else i press alt+ctrl+v (also a hotkey) and it will paste the content of the text file.

So far so good if the text file has only one line, because if you use FileReadLine.

Problem

How can i read multiple lines and put them in the clipboard (ClipPut) like i orginally copied?

But how can i

Share this post


Link to post
Share on other sites



I'm almost feeling stupid, because it is so simple if you see this.

Sorry that i have not thought about FileRead :shocked:

I will try this, thank you for so far.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

-Very Stupid Post-

Solution was to simple :">

Edited by Iznogoud

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