Jump to content

Help with looping script


Qutazs
 Share

Recommended Posts

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 :-)

Link to comment
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")
Link to comment
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 :-)

Link to comment
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
Link to comment
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 :-)

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...