Calicfer Posted November 12, 2007 Share Posted November 12, 2007 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 comment Share on other sites More sharing options...
searchresult Posted November 12, 2007 Share Posted November 12, 2007 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 comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now