Color Picker everywhere... lazarus / 39-Graphics ---------------------------------------------------------------------- Fred vS · 2014-10-28 14:58 Hello everybody. I'm glad to present you Color_Picker  Color_Picker is a tool for managing the colors. You may get the pixel-color of any part of he screen, compare it, get the hex code of the selected color and much more... Color_Picker uses the fpGUI widgetset and was highly inspired by ColorWheel fpGUI demo. => https://github.com/graemeg/fpgui/tree/develop Download Color_Picker  there => https://github.com/fredvs/color_picker Here a video of Color_Picker in action and how to use the picker. => https://sites.google.com/site/fiensprototyping/color_picker.mp4 In /bin there are compiled executable for Win32/Win64/Linux32/Linux64/freeBSD64. Have fun.  Fre;D ---------------------------------------------------------------------- Never · 2014-10-28 15:44 hello @Fred vS very promissing app thank you just tested win32 bin and thought you might use some feed back 1) app doesnt retrive colors from intire screen corectly but only from inside the color cycle if released the mouse anywere  the returned color is constantly this [ $FEFEFE ] 2) when mouse down and  moving the cross cpu raise to 25% 30% if i notice something else i'll be back ---------------------------------------------------------------------- Fred vS · 2014-10-28 18:13 @ Never => thanks to test it  To use the everywhere-color-picker, click on the Picker button maintaining the left-mouse-button pressed. Then go where you want to get the color-pixel-screen (with the mouse- button still pressed). Release the button where you want the color => you will get the pixel- color  If you enable "Continuous", you will get every pixel_color you go... Fre;D ---------------------------------------------------------------------- Never · 2014-10-28 18:22 QuoteTo use the everywhere-color-picker, click on the Picker button maintaining the left-mouse-button pressed. Then go where you want to get the color-pixel-screen (with the mouse- button still pressed). Release the button where you want the color => you will get the pixel- color that is what i did at first place i saw the directions already ---------------------------------------------------------------------- Fred vS · 2014-10-28 18:36 Quotethat is what i did at first place i saw the directions already Hum, just tested color_picker.exe from color_picker /bin/windows32 => Here it works on Windows 8, Windows 7, XP and via Linux-Wine... What Windows version are you using ? Are you sure you maintained the mouse-button clicked ? Fre;D ---------------------------------------------------------------------- Never · 2014-10-28 18:38 sure do not worry about it QuoteWhat Windows version are you using ? mentioned on the left side under the nickname i have thems service off maybe this makes a diff? ---------------------------------------------------------------------- Fred vS · 2014-10-28 18:41 Quotei have thems service off maybe this makes a diff? No, it should work with/without themes... ---------------------------------------------------------------------- Never · 2014-10-28 18:44 yes just enabled and restarted but nothing changed ---------------------------------------------------------------------- Fred vS · 2014-10-28 18:52 Quoteyes just enabled and restarted but nothing changed Hum, i do not understand why it does not work for you. Maybe somebody else could try it and give his result.  Only to be sure : - Click on the Picker button and do not release the button pressed., - Travel with your mouse somewhere on the screen (with button still down). - Release the button on pixel-color you want => you must get the color. Fre;D ---------------------------------------------------------------------- Never · 2014-10-28 18:59 Quote- Click on the Picker button and do not release the button pressed., - Travel with your mouse somewhere on the screen (with button still down). - Release the button => you must get the color. is pretty clear not something complicated executed  the exe from several places disabled antivirus firewal the behavior remains are you testing on virtual box? ---------------------------------------------------------------------- Fred vS · 2014-10-28 19:06 Quoteare you testing on virtual box? No, on pure Windows OS. I have tested on Wine-Linux too. ---------------------------------------------------------------------- Never · 2014-10-28 21:12 hello Here a video of Color_Picker in action on my system [ https://www.youtube.com/watch?v=dGaSt9nF_q8 ] can't do more than this Edit***: please download it an informe to remove it thank you ---------------------------------------------------------------------- Fred vS · 2014-10-29 00:25 @ Never => Indeed  Sorry but i do not know why it does not work on your system. Many thanks for feedback, i will try on other machines to see what is wrong. Fre;D ---------------------------------------------------------------------- Graeme · 2014-10-29 13:33 Quote from: Fred vS on October 28, 2014, 07:52:54 pmMaybe somebody else could try it and give his result.  Tested on 64-bit Win7 system. Works fine here. The only thing I can comment in is that the tooltop over the "Picker" button appears over the picker button, so when you sometimes click you are actually clicking the tooltip window not the button. Wiggle the mouse and the tooltip disappears. Then clicking the button and picking a color works just fine. I tested on all areas of my desktop. ---------------------------------------------------------------------- Zoran · 2014-10-29 18:53 I like it, thank you. Works well here on linux 64 bit. ---------------------------------------------------------------------- nitram · 2014-12-08 08:55 Did similar with so called grapherSCOPE by means of Lazarus. On Windows it works perfect. Try to port it for Mac where I currently struggle getting screenshots and RGB readout. Only useful method I found seems to be here http://forum.lazarus.freepascal.org/index.php/topic,16980.0.html Look grapherSCOPE demo at http://www.m2port.com/ All is based on YCbCr Color space which is useful for Video. With YCbCr you get a better feeling for preceived Color. Don't know why people are that focused on HSB when it comes to retouching of Images. It seem to be a Photoshop phenomenon.... ---------------------------------------------------------------------- CM630 · 2021-09-08 07:36 I just came into the necessity to pick colours from the screen. I have downloaded this app. Either I cannot understand how it works or it does not work. There is no „Help“, just „About“. Edit: I have watched the video, it somehow helped with some guessing. Edit 2: The help link in the „About window does not open wheel clicking it.“ Win 10; 64 Bit. ---------------------------------------------------------------------- BobDog · 2021-09-08 11:21 Here is a simple no frills colour picker for windows. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program finder;{$macro on} {$define _WIN32_WINNT := $0500}uses windows,crt,sysutils;   const    DC_BRUSH=18;    const    DC_PEN=19; typecolour =packed recordcase integer of0:(r,g,b:byte);1:(c:longword);end;  function Printf(mask : pchar):integer; cdecl; varargs; external 'msvcrt.dll' name 'printf'; function system(s:pchar):integer ; cdecl external 'msvcrt.dll' name 'system'; function SetDCBrushColor(p:hdc;colour:COLORREF): COLORREF; stdcall external 'gdi32.dll' name 'SetDCBrushColor'; function SetDCPenColor(p:hdc;colour:COLORREF): COLORREF; stdcall external 'gdi32.dll' name 'SetDCPenColor'; Function SetProcessDPIAware():boolean ;stdcall external 'User32.dll' name 'SetProcessDPIAware';  procedure hidecursor(); var    consoleHandle:handle;     info:CONSOLE_CURSOR_INFO ;     begin     consolehandle := GetStdHandle(STD_OUTPUT_HANDLE);     info.dwSize := 100;     info.bVisible := FALSE ;     SetConsoleCursorInfo(consoleHandle, @info);     End; Varp:hwnd;h,wh:h dc;pt:point;clr:colour;r:integer=50;s:pchar;begin    p := GetConsoleWindow();    setwindowpos(p, HWND_TOPMOST, 100, 100, 230, 280, SWP_SHOWWINDOW);    system('title [MOVE]');    SetWindowLong(p,GWL_STYLE, GetWindowLong(p, GWL_STYLE) and not(WS_MAXIMIZEBOX) and not( WS_SIZEBOX));    SetProcessDPIAware;    hidecursor();    h:=GetDC(0);    wh:=GetDC(p);    SelectObject(wh,GetStockObject(DC_BRUSH));    SelectObject(wh,GetStockObject(DC_PEN));    while p<>1 do    begin    getcursorpos(@pt);    clr.c:=getpixel(h,pt.x,pt.y);    ShowScrollBar(p, SB_BOTH, FALSE);    SetDCBrushColor(wh,clr.c);    SetDCPenColor(wh,clr.c);    ellipse(wh,trunc(105-r),trunc(70-r),trunc(105+r),trunc(70+r));   gotoxy(3,10);  printf('Red   %s','   ');  gotoxy(3,10);  printf('Red %d',clr.r);   gotoxy(3,11);  printf('Green %s','   ');  gotoxy(3,11);  printf('Green %d',clr.g);   gotoxy(3,12);  printf('Blue  %s','   ');  gotoxy(3,12);  printf('Blue  %d',clr.b);   gotoxy(3,13);  printf('HEX %s','          ');  gotoxy(3,13);  s:=pchar(IntToHex(clr.c,8));  printf('HEX  %s',' $');  printf('%s',s);   gotoxy(3,14);  printf('RAW %s','          ');  gotoxy(3,14);  printf('RAW   %d',clr.c);   gotoxy(3,15);  printf('X,Y   %s','             ');  gotoxy(3,15);  printf('X,Y   %d ,%s %d',pt.x,'',pt.y);    sleep(20);    end;   readln;end.