Jump to content

Pixel search + Mouse Click


javas
 Share

Recommended Posts

Can anyone help me or give me a default format I can use to program a program that basically searches a specific window for a shape/color and then if it find that shape/color click a specific coordinate on the screen. If there's no way to search for a shape, can I just program it to look for a series of colors at different key points that would help identify the shape?

somewhere along the lines of

PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] )

PixelSearch ( left2, top2, right2, bottom2, color2 [, shade-variation2 [, step2 [, hwnd2]]] )

if @error != 1

_MouseClick($hwnd, "left", Array[0], Array[1])

Thanks.

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...