Page 1 of 1

IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Thu Dec 11, 2014 2:18 am
by glsevans
I would love to see an eye drop selector in the Color Picker Tool to sample color from anywhere on the desktop.

Re: IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Thu Dec 11, 2014 6:00 am
by VB6_to_PBx
glsevans wrote:I would love to see an eye drop selector in the Color Picker Tool to sample color from anywhere on the desktop.
+1
so would i
:)

Re: IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Wed Mar 29, 2017 12:24 am
by Thunder93
It would be very convenient for us to have.

I have been using ColorPic. However old utility and with Windows 10, the area capturing isn't under the mouse cursor now.

I don't know if there's anything better but ' Just Color Picker ' from http://annystudio.com/software/colorpicker/ ...does work with also Windows 10.

Re: IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Wed Mar 29, 2017 10:04 am
by Zebuddi123
Hi This is what i use you will have to set the x,y screnn coord for your screen if you decide to use it. color in hex rgb and desktop mouse x,y
Zebuddi.

Image
postimage org safe

Code: Select all

EnableExplicit

Global iHDC = GetDC_(0), Pixelcolour$

Procedure vQuit()
	ReleaseDC_(0,iHDC)
	End
EndProcedure

Procedure.s  Update()
	Protected  iX.i, iY.i, iPixelColor.i, iRed.i, iGreen.i, iBlue.i
	iX = DesktopMouseX()
	iY = DesktopMouseY()
	iPixelColor = GetPixel_(iHDC,iX,iY)
	iRed = Red(iPixelColor)
	iGreen = Green(iPixelColor)
	iBlue = Blue(iPixelColor)
	PixelColour$ = "Color $" + RSet(Hex(iRed), 2, "0") + RSet(Hex(iGreen), 2, "0") + RSet(Hex(iBlue), 2, "0") 
	If WindowHeight(0) > 10
		PixelColour$ + " RGB(" + Str(iRed) + ", " + Str(iGreen) + ", " + Str(iBlue) + ")"
		SetGadgetText(0, "X:" + Str(iX) + " Y:"+ Str(iY) +" : " + PixelColour$)
	EndIf
EndProcedure	

OpenWindow(0, 1750, 45, 300, 20, "",#PB_Window_BorderLess)
StickyWindow(GetActiveWindow(), #True)

TextGadget(0, 0, 3, 300, 20, "", #PB_Text_Center)

BindEvent(#PB_Event_RightClick, @vQuit(), 0)
          
Define sColor.s, iEvent.i

Repeat
	iEvent = WaitWindowEvent(500)
	Update()
Until iEvent = #PB_Event_CloseWindow

Re: IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Wed Mar 29, 2017 10:31 am
by Lunasole
Thunder93 wrote: I have been using ColorPic. However old utility and with Windows 10, the area capturing isn't under the mouse cursor now.
Well I can propagand my ColorInspectre utility ^^ Not sure how it works in Win10 but should work
http://geocities.ws/lunasole/data/colorinspectre/l

I've made it as replacement for ColorCop with some extra features.

Re: IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Thu Mar 30, 2017 4:46 am
by Thunder93
Hi.

@Zebuddi123: Nice stuff. I think a tiny box showing the color would be complementary. Also like using GetSystemMetrics_(#SM_CXSCREEN) and subtract the Window width to get that nice placement regardless of resolution.


@Lunasole: I've actually been to your page already, and downloaded that. I didn't know what to expect since there was no image offered up on the site. :twisted:

Just got around to testing and it works perfectly under Windows 10, and it's spot-on! Excellent job on that. I think this'll be my new fav to replace the old ColorPic utility that isn't accurate under Windows 10, or with my Windows customizations. :wink:

Re: IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Thu Mar 30, 2017 3:52 pm
by Lunasole
Thunder93 wrote: @Lunasole: I've actually been to your page already, and downloaded that. I didn't know what to expect since there was no image offered up on the site. :twisted:

Just got around to testing and it works perfectly under Windows 10, and it's spot-on! Excellent job on that. I think this'll be my new fav to replace the old ColorPic utility that isn't accurate under Windows 10, or with my Windows customizations. :wink:
Nice to hear it works fine on 10, I'm still sitting on 7 and not planning move from it anywhere.
Btw thanks for reminded about lack of screenshots. I should add them months ago to that my "homepage" generator, just was too lazy as often. Anyway, finally added ^^

Re: IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Thu Mar 30, 2017 7:07 pm
by Thunder93
I'm always looking for screenshots. I think screenshots would complement the product page, good decision to include.

There are several old and popular Color picker utilities, and they don't capture directly underneath of the mouse cursor. Your utility is spot-on, wouldn't hurt to mention Windows 10 support for those in doubt.

When you update that utility, do you post an update notification somewhere on this board?

Edit: Answered my own question... You do.. http://www.purebasic.fr/english/viewtop ... 14&t=66495 just you haven't posted about the latest update there. :lol:

Re: IDE, Tools, Color Picker - Add eyedrop selector.

Posted: Thu Mar 30, 2017 8:00 pm
by Lunasole
Thunder93 wrote:I'm always looking for screenshots. I think screenshots would complement the product page, good decision to include.
[/i]
Yes thats one of things good "for marketing purposes" :) Just stuff I'm posting on that page is not "commercial" so rarely care about such things.
Glad you liked it, tell if there will be some bug, etc