Jump to content

PixelGetColor


Recommended Posts

How to properly take PixelGetColor and use them in your scripts because I used this:

HotKeySet("{F1}", "Check")
Opt("MouseCoordMode", 2)
Opt("PixelCoordMode", 0)
While 1
    Sleep(100)
WEnd
Func Check()
    $K = MouseGetPos()
    MouseMove(50,50,0)
    Sleep(100)
    $Color = PixelGetColor($K[0], $K[1], WinGetHandle(WinGetTitle(""), ""))
    ClipPut("If PixelGetColor(" & $K[0] & ", " & $K[1] & ") = " & $Color & " Then")
EndFunc

And it doesn't work properly. I'm using this to check if your in a game Diablo II, It will check if a certain pixel exists n an area that it only exists when your in game

SS:

http://img295.imageshack.us/img295/2267/18833832aq9.jpg

Now, would PixelChecksum be better?

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