Jump to content

PixelSearch


Recommended Posts

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...