B4J Question Color selector for entire desktop

rgarnett1955

Active Member
Licensed User
Hi All,

I would like to make a color pipette that I can use to select any color from pixels anywhere on the desktop. In other words outside of the B4J UI Window.

Is possible?

I had a look at the jNativeHook B4J library 1.1, to capture mouse events but I wasn't sure how to use it to do what I wanted.

Best regards
Rob
 

rgarnett1955

Active Member
Licensed User
Not simple. Maybe take a screenshot of the screen (robot class), show it with a full screen form and get the color with Bitmap.GetPixel.


Hi Erel,

Thanks for that.

I thought of that as I looked at your example of taking a screen shot, but it seemed like the hard way to do it. I thought that the hook lib might make it easier. I'll have a crack at the robot class and give that a go. It's certainly doable that way.

Best regards
Rob
 
Upvote 0
Top