Jump to content

pixelsearch


Recommended Posts

How would i find if a specific spot is a specific color?

Like how would i find that X 172 Y 455 is 0x14341C

0x14341C is the hex color.

And if that area is that color how would i make it exit a loop?

<{POST_SNAPBACK}>

While 1
   Sleep(10)
   $spot = Pixelsearch(x1,y1,x2,y2,colour)
      If Not @error = 1 then ExitLoop
WEnd

#CS
x1,y1
   +----------+
   |          |
   |          |
   |          |
   +----------+
              x2,y2
#CE

So in your case: x1 = x2 and y1 = y2.

$spot = Pixelsearch(172,455,172,455,0x14341C)

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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