Jump to content

need help with visual basic


renkei32
 Share

Recommended Posts

I use pixelsearch in Visual Basic.My problem is,if he finds two of the same color, he always turns to one, and I want him to go to the nearest Pixel, how can I do that ? (you can also write if you know how to do this in c#.I convert codes.)

Link to comment
Share on other sites

7 minutes ago, renkei32 said:

I use pixelsearch in Visual Basic.My problem is,if he finds two of the same color, he always turns to one, and I want him to go to the nearest Pixel, how can I do that ? (you can also write if you know how to do this in c#.I convert codes.)

There is my codes :

 

asd = autoit.PixelSearch(12, 21, 12, 21, &H0)

While IsArray(asd) = True

      Sleep 2000

      SendKeys("0")

      asd = autoit.PixelSearch(12, 21, 12, 21, &H0)

Wend

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