woodyfly Posted July 18, 2011 Share Posted July 18, 2011 (edited) How do I get pixelsearch to search an exact coordinate? For instance I want pixelsearch to check if coordinates 150,250 is the color 0xFFFF00 and keep looping. I tried While 1 PixelSearch(150,250,150,250,0xFFFF00) If not @error Then MsgBox(0,"","FOUND") Exit EndIf wend ***EDIT: I think the code works, I just had the coordinates wrong (window vs screen coordinates) Edited July 18, 2011 by woodyfly Link to comment Share on other sites More sharing options...
Bert Posted July 18, 2011 Share Posted July 18, 2011 Why not search for a control? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 18, 2011 Share Posted July 18, 2011 Use PixelGetColor() instead of PixelSearch() .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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