troymckin
Sep 5 2009, 02:27 PM
I have a macro that leftclicks a button every couple seconds. I was wondering how i would be able to figure out the color and then replace IsWhite x,y with that color.
DaMOB
Sep 7 2009, 06:59 AM
For as long as you have been around I would have thought you would know this by now. *shrug*
LoadRGB is your best friend as I am anti IsColor commands due to the flexibility of the LoadRGB command and the inflexibility of the IsColor commands.
This question would have fit better in the macro development section but no biggie anymore.
As far as figuring out the color there are programs that will tell you the pixel color under the cursor. Either that or grab a screenshot of it and use Photoshop/Paintshop/etc... Even the object mapper is really good for this as you just hit your print screen button and click the paste from clipboard button and there is the colors (RGB) that are under the mouse pointer.