qwertylol Posted May 5, 2007 Share Posted May 5, 2007 how do I do pixelsearch with a screenshot stored in a variable? Link to comment Share on other sites More sharing options...
Kickassjoe Posted May 5, 2007 Share Posted May 5, 2007 You don't. The closest that you would be able to do to that would be PixelChecksum() Pixelsearch only searches for one pixel color at a time, and returns the (location of the) first occurance. So either, you know where the img that you are looking for on the screen is, and you use a PixelCheckSum() to see if it is there. There is no way (that I know of) to search for a whole img other then the ways listed below. OR, you could Pixelsearch() for a unique color in the img, and then PixelGetColor() in a couple of places based on that pixelsearch, to confirm that the img is actually there. What goes around comes around... Payback's a bitch. Link to comment Share on other sites More sharing options...
Valuater Posted May 5, 2007 Share Posted May 5, 2007 I see this as a different question than Joe Place the screenshot in a GUI so you can search ( what ever way you want ) ... but do it off-screen ( not visual) #include <GuiConstants.au3> $GUI = GUICreate("MyGUI", 393, 125, 0, 1000) GUISetBkColor( 0xff, $GUI); put your pic in the location you want GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd 8) 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