Jump to content

Recommended Posts

I'd like to create a script that searches for pixels and does an action based on a certain pixel at a certain location. But I'd like to do all this in a full screen game. Is there a way to do this? any help would be appreciated... Thank you. PM me if you have any questions, or could help me more extensively.

Calcifer

Link to post
Share on other sites

I'd like to create a script that searches for pixels and does an action based on a certain pixel at a certain location. But I'd like to do all this in a full screen game. Is there a way to do this? any help would be appreciated... Thank you. PM me if you have any questions, or could help me more extensively.

Calcifer

try to search the forum there are many topics on this theme, search for PixelSearch.

from help:

PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )

; Find a pure red pixel in the range 0,0-20,300
$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 )
If Not @error Then
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
EndIf


; Find a pure red pixel or a red pixel within 10 shades variations of pure red
$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )
If Not @error Then
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
EndIf
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...