Gets the pixel color from desktop. Can keep up to 5 colors per session. I find it very helpful when creating graphics for my apps.
Give it a try. Enjoy. (please no comments on this or the world will come to an end. haha)
Printable View
Gets the pixel color from desktop. Can keep up to 5 colors per session. I find it very helpful when creating graphics for my apps.
Give it a try. Enjoy. (please no comments on this or the world will come to an end. haha)
Hi Ken,
To do this, I typically do a screen-capture and then take the image to something like Paint-Shop-Pro to get exact colors. But your idea is pretty cool.
However, a couple of suggestions if you don't mind. Yeah, I saw your "no comments" request, but isn't that what these forums are about?
1) Please make your three reporting boxes into locked TextBoxes. That way, we can copy those values. We might be after a hex value or one of the RGB decimal values, rather than the Long.
2) You're reporting the Hex value as GBR, which is the way VB does it. However, much of the rest of the world reports these hex colors as RGB, such as pretty much all "paint" type programs as well as any HTML color. So, if you could also have a "Hex (RGB)" option, that would be very nice.
3) How about a set of option buttons to say what goes into the clipboard, such as: Long value, Hex(GBR), Hex(RGB), RGB csv decimal.
4) Your "use saved color" explanation is a bit confusing to me. How about this: "To use saved color, click the saved color box you wish to use, then capture your color."
5) Also, to make my suggestion #1 useful, two versions of each of the textboxes would be nice: 1) current hover color, 2) prev captured color. Or, another alternative for this would be as follows: Have some on/off toggle button for whether or not your program is doing its color tracking, and, when a color is captured, turn it off and make the user turn it back on to capture another color. Just an idea.
6) Also, it's a bit confusing that your program still "sort of" works when it doesn't have the focus. I'm glad I can still use the clipboard for my own purposes in that case, but your program still "sort of" captures the color.
Again, nice little utility.
---------
EDIT: It's a bit tricky knowing whether or not you've got the focus (system wide). It actually takes a touch of subclassing, and I'm not sure whether or not you're into that. But, if you're so inclined to put this into your project, here's a link to a codebank post I just made. It's in other old threads, but I decided to go ahead and put it in the codebank.