Jump to content
Sign in to follow this  
Wollie

Finding a color value

Recommended Posts

Wollie

Hello,

Is it possible to return a color value to the script? For example declare one variable the color where the mouse hovering over.

I couldnt find any functions regarding this subject

Thanks in advance.

Share this post


Link to post
Share on other sites
ofLight

While 1
    $xy = MouseGetPos()
    $currentpixel = PixelGetColor($xy[0],$xy[1])
    ToolTip("Pixel color = " & $currentpixel)
    Sleep(100)
WEnd


There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Share this post


Link to post
Share on other sites
Wollie

Thanks alot

That is exactly what i was looking for :)

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  

×