Sign in to follow this  
Followers 0
Skizmata

Sending Copy and Paste

6 posts in this topic

Is there a better way to send copy/paste then Send("{^c}")/Send("{^v}") for whatever reason these don't work 100% for me sometimes they end up sending just c or just v. Is there a way to do this more directly in your own script. I've used ControlSend() and it seems to be no better at dropping the control char. Help!


AutoIt changed my life.

Share this post


Link to post
Share on other sites



Yes use controlsend and to set the text of the clipboard see ClipGet() or ClipPut()

Share this post


Link to post
Share on other sites

Did you read my post? I mentioned ControlSend() and have no question about ClipGet() or ClipPut(). This response confuses me.


AutoIt changed my life.

Share this post


Link to post
Share on other sites

Sort of confused me, too. I'm not sure how Clip functions would be used. Anyhow, your problem is that it sometimes sends the letter, right? Try using {CTRLDOWN} then C, then {CTRLUP}?

Share this post


Link to post
Share on other sites

I'm a newb but Have you tried:

Send("^c")

Send("^v")

Share this post


Link to post
Share on other sites

You said

"Is there a better way to send copy/paste then Send("{^c}")/Send("{^v}")"

I am saying that instead of sending a Ctrl-C ("^c"), you should use ControlGetText() and then ClipPut() that into the clipboard (or just save to a variable). Then you could use ControlSetText() to set the data.

Did you read my post? I mentioned ControlSend()

Wow, you are rude. I will make an effort to no longer help you.

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