Sign in to follow this  
Followers 0
Gondus

Need help with pixil search

4 posts in this topic

While 1 = 1
    MouseMove(567, 459, 20) ;Moves to action
    MouseClick("left") ;Clicks button
    $zombie = PixelSearch(1, 159, 766, 661, 2317669, 10) ;Gets monsters cord
    If Not @Error Then
    MouseMove($zombie) ;This is where im confused...how do i get it to move to the monster cords?
    MouseClick("left") ;Clicks on Monster
WEnd ;Continues till paused or terminated

I dont know exactly how to use $zombie cord's to get the mouse to click on the monster.


-----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran

Share this post


Link to post
Share on other sites



maybe

While 1 = 1
    MouseMove(567, 459, 20) ;Moves to action
    MouseClick("left") ;Clicks button
    $zombie = PixelSearch(1, 159, 766, 661, 2317669, 10) ;Gets monsters cord
    If Not @Error Then MouseClick("left", $zombie[0], $zombie[1]) ; move and click the monster cords
WEnd ;Continues till paused or terminated

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thank You very much, you helped me out with my script so much, and taught me alot to. :P

My script is now finally done, ty ty ty ty ty ty ty :nuke::):D:lol::idea:


-----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran

Share this post


Link to post
Share on other sites

Thank You very much, you helped me out with my script so much, and taught me alot to. :P

My script is now finally done, ty ty ty ty ty ty ty :nuke::):D:lol::idea:

Welcome

8)


NEWHeader1.png

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