Jump to content

Recommended Posts

Posted

Welcome to AutoIt and the forum!

We do not spoon feed users here. Can you explain what you need PixelSearch for and what you have tried so far and what didn't work?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Thank you for answer. I found solution. Think somebody can help this

Object pixelSearch = autoItX3.PixelSearch(miniMap.x1, 
                                          miniMap.y1, 
                                          miniMap.x2, 
                                          miniMap.y2,
                                          int.Parse("FC0023", System.Globalization.NumberStyles.HexNumber), 
                                          10);
if (autoItX3.error != 1)
{
    object[] cord = pixelSearch as object[];
    Fight((int)cord[0], (int)cord[1]);
}

 

Posted
  On 7/13/2016 at 1:58 PM, Ciberus said:

Thank you for answer. I found solution. Think somebody can help this

Object pixelSearch = autoItX3.PixelSearch(miniMap.x1, 
                                          miniMap.y1, 
                                          miniMap.x2, 
                                          miniMap.y2,
                                          int.Parse("FC0023", System.Globalization.NumberStyles.HexNumber), 
                                          10);
if (autoItX3.error != 1)
{
    object[] cord = pixelSearch as object[];
    Fight((int)cord[0], (int)cord[1]);
}

 

Expand  

Thank you for answer. I found solution. Think somebody can help this

Object pixelSearch = autoItX3.PixelSearch(miniMap.x1, 
                                          miniMap.y1, 
                                          miniMap.x2, 
                                          miniMap.y2,
                                          int.Parse("FC0023", System.Globalization.NumberStyles.HexNumber), 
                                          10);
if (autoItX3.error != 1)
{
    object[] cord = pixelSearch as object[];
    Fight((int)cord[0], (int)cord[1]);
}

 

Posted

Why do you quote yourself?

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...