Jump to content

Help with copy and paste to warcraft


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...