Sign in to follow this  
Followers 0
backlicker

help with PixelSearch / ?

4 posts in this topic

Hi,

im new to AutoIT and i need some help, ive found some other posts that have helped, but now im kinda stuck.

i want to open up a game, login and join something, then i want to PixelSearch an area

until it turns red, then click the spot that turned red. meanwhile pressing space every few minutes before and after the spot turns red. i also want to always be looking for the red spot and to click it again when it comes up.

i dont really know what im doing, but im trying to learn... so this may look completely wrong:

Run("C:\Program Files\World of Warcraft\WoW.exe")
Sleep ( 7000 )
Send( "pw" )
Send( "{ENTER}" )
Sleep ( 5000 )
Send( "{ENTER}" )
Sleep ( 26000 )
MouseClick("right", 598, 395,)
Sleep ( 750 )
MouseClick("left", 106, 260,)
Sleep ( 750 )
MouseClick("left", 209, 527,)
Sleep ( 100 )
MouseMove( 572, 176,)oÝ÷ ÙÊ&n)Þw­«­¢+ØÀÌØíݽÜôÄ)]¡¥±ÀÌØíݽÜÐìôÄ(%M±À ÄÜÔÀÀÀ¤(%M¹ ÅÕ½ÐííMA
ôÅÕ½Ðì¤)]¹oÝ÷ Ù©Ýiè¶Ë«{Z¶Ú£­ø±zTj·!jëh×6PixelSearch ( 533, 172, 535, 192, 0x6C0100, 15 )

so what would i do to combine this

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

ok i have read around, and come up with this, but it doesnt work, i dont know if i have the color wrong or if the pixel search will loop:

$wow = 1
$redbox = PixelSearch ( 533, 172, 535, 192, 0x6C0100, 15 )
Run("C:\Program Files\World of Warcraft\WoW.exe")
Sleep ( 7000 )
Send( "pw" )
Send( "{ENTER}" )
Sleep ( 5000 )
Send( "{ENTER}" )
Sleep ( 26000 )
MouseClick("right", 598, 395,)
Sleep ( 750 )
MouseClick("left", 106, 260,)
Sleep ( 750 )
MouseClick("left", 209, 527,)
Sleep ( 100 )
MouseMove( 572, 176,)
Call("afk")
Func afk()
If IsArray($redbox) = 1 Then
    MouseClick("left", 572, 182,)
While $wow >= 1
    Sleep ( 130000 )
    Send("{SPACE}")
WEnd
Else 
    Sleep( 30000 )
    Send("{SPACE}")
    Call("afk") 
EndIf
EndFunc
Edited by backlicker

Share this post


Link to post
Share on other sites

Bots aren't really my thing...

Run("C:\Program Files\World of Warcraft\WoW.exe")
Sleep ( 7000 )
Send( "pw" )
Send( "{ENTER}" )
Sleep ( 5000 )
Send( "{ENTER}" )
Sleep ( 26000 )
MouseClick("right", 598, 395)
Sleep ( 750 )
MouseClick("left", 106, 260)
Sleep ( 750 )
MouseClick("left", 209, 527)
Sleep ( 100 )
MouseMove( 572, 176 )
While 1
    $coord = PixelSearch ( 533, 172, 535, 192, 0x6C0100, 15 )
    If Not @error Then
        MouseClick("left", $coord[0], $coord[1])
    EndIf
    Sleep ( 175000 )
    Send("{SPACE}")
WEnd

#)

Share this post


Link to post
Share on other sites

Bots aren't really my thing...

Run("C:\Program Files\World of Warcraft\WoW.exe")
Sleep ( 7000 )
Send( "pw" )
Send( "{ENTER}" )
Sleep ( 5000 )
Send( "{ENTER}" )
Sleep ( 26000 )
MouseClick("right", 598, 395)
Sleep ( 750 )
MouseClick("left", 106, 260)
Sleep ( 750 )
MouseClick("left", 209, 527)
Sleep ( 100 )
MouseMove( 572, 176 )
While 1
    $coord = PixelSearch ( 533, 172, 535, 192, 0x6C0100, 15 )
    If Not @error Then
        MouseClick("left", $coord[0], $coord[1])
    EndIf
    Sleep ( 175000 )
    Send("{SPACE}")
WEnd

#)

Thanks, as you can see, bots arent really my thing either, but im trying to learn.

i havent had a chance to test it out, but will this constantly search for the red spot, and will it wait to send space until after the redspot is found?

What im trying to do is log on to wow, join the AV Queue, enter the battle when it comes up, and join a party if invited, then play a sound or something when i am in, meanwhile press space every so often to keep from going afk and getting kicked out of AV, or getting kicked before i go to AV since sometimes it can take a long time.

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