Jump to content

using pixelsearch


Recommended Posts

I have not been using autoit for a bit and I seem to be very rusty.

I was hoping someone could tell me if I am using pixelsearch correct.

Here is what I am doing, Looking for the text in red in a certin area instead of a pinpoint LOC.

I was using

$Target_Colour = PixelGetColor($TargetX, $TargetY)
If $Target_Colour <> $No_Target_Col Then
$Fight = 1

and now I am trying to use

$Target_Colour = PixelSearch($TargetX, $TargetY, $TargetX1, $TargetY1, 0xFF0000)
If IsArray($Target_Colour) = 1 Then
$Fight = 1

Thanks in advance

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