Jump to content
Sign in to follow this  
Shifty

Help with copy and paste to warcraft

Recommended Posts

Shifty

I just want a simple script that will paste what is on the clipboard to World of Warcraft. I did:

WinActive("World of Warcraft")
Send("{ENTER}")
Send("{CTRLDOWN}")
Send("v")
Send("{CTRLUP}")

but it doesn't work.

Share this post


Link to post
Share on other sites
Hawkwing

The winactive function doesn't pause the script until the window is active. Use winwaitactive instead.

WinWaitActive("World of Warcraft")
Send("^v")

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Share this post


Link to post
Share on other sites
Shifty

thanks, 1 problem though...

it only sends the string when i click on the WoW window to bring it into focus but i need it to send to the WoW window regardless if it has focus or not.

with that having been said, is there a way to send to a specific WoW window if more than 1 are open?

Edited by Shifty

Share this post


Link to post
Share on other sites
Hawkwing

Running multiple instances of WoW? Doesn't that violate the terms of use? You would need to get the handle of the instance that you wanted to send it to and use that with controlsend.


The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Share this post


Link to post
Share on other sites
Shifty

No, multiple wows aren't against TOS. People 5 box on one computer and it is perfectly legal per TOS. Thanks for ControlSend and I'll have a look in handles

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.