Sign in to follow this  
Followers 0
stn9063

First Script; PGC help

6 posts in this topic

i dont understand how it works... how can you tell which color, exactly, the pixel is...? do u have to edit it in paint and check the "define custom colors" tab? what programs will i need to assist me in finding the colors/plugging in the values of these certain colors? i cannot find this in the AutoIt help file. please help, thanks.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

look at PixelGetColor() in the help file, this will make it clear to you.

Edit: 'AutoIt Window Info' is a useful application that will tell you a lot of things about the things under your mousecursor (such as pixelcolor)

it comes with standard autoit release

Edited by Manadar

Share this post


Link to post
Share on other sites

look at PixelGetColor() in the help file, this will make it clear to you.

Edit: 'AutoIt Window Info' is a useful application that will tell you a lot of things about the things under your mousecursor (such as pixelcolor)

it comes with standard autoit release

Oh okay, I see that... but what does the "Dec: 16777215" mean? What value is this showing me?

Share this post


Link to post
Share on other sites

Hex = 0xFFFFFF

Dec = 16777215

represent the same value in two different counting systems.

That is the value of the color of the pixel under your current mouseposition. :D (a.k.a. Color under Mousecursor)

Share this post


Link to post
Share on other sites

Hex = 0xFFFFFF

Dec = 16777215

represent the same value in two different counting systems.

That is the value of the color of the pixel under your current mouseposition. :D (a.k.a. Color under Mousecursor)

And what do you suggest I use for the scripting? The Hex or the Dec? I have plugged in the Hex but if it's innconvienient then I'll switch. :D

Share this post


Link to post
Share on other sites

i use the RGB Hex Color

example

$pos = MouseGetPos()
        $Svar = PixelGetColor(  $pos[0] , $pos[1])
        $var = "0x" & Hex($Svar,6)

8)


NEWHeader1.png

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