Sign in to follow this  
Followers 0
ZanaxNL

[NeedHelp] PixelGetColor *_*

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
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)

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  
Followers 0