Jump to content
Sign in to follow this  

Want to put text on clipboard

Recommended Posts


I have a script that is in another language and in that script I want it to open a small application that will simply read a text file and put the contents on the clipboard . so I hit ctrl+v and there is the text.

Seems like something that has probably been done before a million times . so someone should have this right ?

Meantime I'll keep searching .

thx :whistle:


hehe . im half there !!

ClipPut ( "value" )

n it works !! yay !!

now i gotta get the text from the file.

Edited by rush4hire

Share this post

Link to post
Share on other sites

Thx larry I got it.

$file = FileOpen("CopyXfer.txt", 0)
If $file = -1 Then
    MsgBox(0, "Error", "This application is only for the bot to use. It simply copies text so you can paste it.")
$line = FileReadLine($file)
ClipPut ( $line )

this program rocks !!!

Stupid vbs makes you do all kinds of wacky things to get around it's limitations . you can't put stuff on clipboards with vbs . but this application can and vbs can write to file and hit an exe

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