Jump to content
Sign in to follow this  
Mancelion

Send Scripts to one window (World of Warcraft)

Recommended Posts

Mancelion

Hey!

I fly alot around trying to search for some rare spawns in World of Warcraft. I made an in-game macro which targets the spawns if they are close. Basically I used to press manually button no.1 where I put the macro while flying around - but that kinda started to hurt my finger pressing just that one button gazillion times.

Hence - I just made the simplest script ever just to spam button "1" every half second while I'm flying around.

My question though is - cause sometimes I switch to my monitor no. 2 browsing forums etc while I'm flying around - but then my script tries to spam "1" in my active window.

Is it possible to make the script send the command to the window only - called "World of Warcraft" ?

Script I use now is just this simple here:

Loop:
EnvAdd, LoopCounter, 1
Send, 1
Sleep, 500
Goto, Loop

Any ideas :P ?

Edit: Currently just using AutoIt 2

Edited by Mancelion

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.