Sign in to follow this  
Followers 0
Qutazs

Help with looping script

11 posts in this topic

Hello everyone,

this is my first time here on the boards, and the very first time using AutoIT (I was using AutoHotKey before).

I can say, that right now I really like AutoIT and the possibilities, but I have ran into a problem.

$var = 1

While $var = 1
    Sleep (5000)
$PID = ProcessExists("WoW.exe")
If $PID Then ControlSend("World of Warcraft", "", "GxWindowClassD3d", "2",1)
WEnd

This SHOULD send the key "2" into the World of Warcraft window, even if it ain't the highlighted window (means; not being the active window).

Can anyone see what I'm doing wrong? It worked perfectly when I wrote it like this:

$var = 1

While $var = 1
    Sleep (5000)
$PID = ProcessExists("WoW.exe")
If $PID Then Send("2")
WEnd

But then it HAS to be active - And that's hard when I want it to run in the background while in school.

Ty in advance :-)

Share this post


Link to post
Share on other sites



Maybe WOW use something for protection like GameGuad or something similar, in this case ControlSend will not work.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

WoW doesn't have gameguard. Do your research.

@Qutasz, you can do a control send without specifying a control, this works on WoW for sure. But perhaps it still has to be active. I've never tried running it in the background, because I usually wanted to see what the bot was doing for validation of it running properly.

Anyway, this is the code:

ControlSend("WindowTitle", "", "", "Send text")

Share this post


Link to post
Share on other sites

WoW doesn't have gameguard. Do your research.

@Qutasz, you can do a control send without specifying a control, this works on WoW for sure. But perhaps it still has to be active. I've never tried running it in the background, because I usually wanted to see what the bot was doing for validation of it running properly.

Anyway, this is the code:

ControlSend("WindowTitle", "", "", "Send text")

I will try, and get back to you :-)

Share this post


Link to post
Share on other sites

The script is now working :D

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_Comment=This is an Autojoin/ANTI-AFK script for WoW Honor / XP farming (BG ONLY!)
#AutoIt3Wrapper_Res_Description=Autjoin/ANTI-AFK WoW
#AutoIt3Wrapper_Res_Fileversion=1.0.0.1
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=TOtallyANoNymous
#AutoIt3Wrapper_Res_Language=1080
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

$var = 1

While $var = 1
    Sleep (5000)
$PID = ProcessExists("WoW.exe")
If $PID Then ControlSend("World of Warcraft", "", "", "2")
WEnd

Share this post


Link to post
Share on other sites

Ok just to clarify something.

This was just the first part for my "all-in-one" pack for honor farming in WoW.

It will have the possibility of auto-login, auto-queue, auto-join and anti-afk.

It will come in an install file, which will install the program itself + the associated wow addon (the one that queues you).

Just need to wait a bit more for a beta release :-)

Share this post


Link to post
Share on other sites

What are you clarifying here? It looks like all new information to me, none of it of any relevance.

I see what you mean, sorry, its early in my current position :D But that whats im making atm.

Share this post


Link to post
Share on other sites

I think I'm gonna do that once I have a working beta version :D

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