Sign in to follow this  
Followers 0
qwertylol

PixelSearch

3 posts in this topic

how do I do pixelsearch with a screenshot stored in a variable?

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

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  
Followers 0