Jump to content
Sign in to follow this  

[NeedHelp] PixelGetColor *_*

Recommended Posts

Case $Button4
            Until _IsPressed(01)
            $pos = MouseGetPos()
            $col = Pixelgetcolor($pos[0],$pos[1])
            MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])
            Msgbox(0, "Color",$col)

I need to find the color of where u pressed on the screen.

but pixelgetcolor does strange, i dont get a good valid color.

Msgbox of $col says : 16777215 or something else like 15000142.

** if its wrong say it, and maybe fix it for me : ( then i have to need pixelsearch(,,,#col) something

How to fix this?

So i can use it for PixelSearch.

Thanks u !

Zanax ;)

Edited by ZanaxNL

Share this post

Link to post
Share on other sites


ConsoleWrite("0x" & StringTrimLeft(Hex(PixelGetColor($pos[0],$pos[1])),2)) ?

how to use it my script?

i need to search color on the place where i clicked.

then he most search color and click color if i pressed other button.

Doesnt now what consolewrite will do ( with helper )


Share this post

Link to post
Share on other sites

found this:


So now i get better results.


or 62321B

i gues that is what pixelsearch needs xd

i gues?

can someone give a example of pixelsearch $sColor and then click if found(mouse on it)

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...