Jump to content

[NeedHelp] PixelGetColor *_*


ZanaxNL
 Share

Recommended Posts

Case $Button4
            Do
            Sleep(100)
            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
Link to comment
Share on other sites

So:

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 )

Zanax

Link to comment
Share on other sites

found this:

http://www.autoitscript.com/forum/index.php?showtopic=63318

So now i get better results.

like FFFFFF

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)

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