Jump to content
Sign in to follow this  
Garrett19212

pixelsearch

Recommended Posts

Garrett19212

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?

Share this post


Link to post
Share on other sites
Blue_Drache

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

Share this post


Link to post
Share on other sites
Garrett19212

thx

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  

×