Sign in to follow this  
Followers 0
kjactive

ColorPicker UDF

9 posts in this topic

#1 ·  Posted (edited)

Just a small Colorpicker requester that ease the use of colors in any intuitions, easy to use with options to load, create and save palette scripts, user defined colors supported as to pickup colors from a gradient color area...

post-4760-1195993285_thumb.gif

Download from site:

http://www.sitecenter.dk/latenight/nss-fol...rPick%20UDF.zip

The User area controls is optional, left mouse control pick colors as right mouse control holds curent color value...

kjactive :P

Edited by kjactive

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

ColorPick UDF major update

Four different requester intuition modes attached and changed as to all defined color controls to be editable as to load and save as new palette file - Return from the main function is changed: now return the color type ( RGB or Hex ) or 0 if non was selected, the actual color value is now attached to the Global variabel $COLORPICK_Color - Right mouse button still toggles the color snap on / off...

post-4760-1196529195_thumb.gif Mode 0 post-4760-1196529203_thumb.gif mode 1

post-4760-1196529208_thumb.gif mode 2 post-4760-1196529215_thumb.gif mode 3

Mode two and three can be reduced and keep last settings...

Some bug fixes too...

Documentation is in autoit3 style with a 'ColorPick Management' script...

Download from site

http://www.sitecenter.dk/latenight/nss-fol...rPick%20UDF.zip

kjactive :)

Edited by kjactive

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Small Update...

There was a bug as the colorpicker returned the wrong color value - it toggled the Hex and Dec - Fixed...

Now the requester holds last preferences correctly - Fixed...

Now the colorpick UDF supports ini reg. base included paths...

Changed the return value to return the requester mode and not color value - color value is in the Global variabled $COLORPICK_Color

#Include <Colorpick.au3>
$iReturn = _ColorPick('',3); First argument: defined palette.pal script, second: requester intuition mode...
If $iReturn = 0 Then
    ConsoleWrite("No Color return just quit" & @CRLF)
Elseif $iReturn = 1 Then
    ConsoleWrite("RGB: " & $COLORPICK_Color & @CRLF)
Else
    ConsoleWrite("HEX: " & $COLORPICK_Color & @CRLF)
Endif

Download from site:

http://www.sitecenter.dk/latenight/nss-fol...rPick%20UDF.zip

kjactive :)

Edited by kjactive

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Update and bug fix

The requester is highly configurateable, has seven different visual modes as one to toggle between a list of spectrum images and it's now posible to load in a spectrum image from argument to do new palettes from - actually come very handy when one wants to keep same palette as an image...

Changes:

1.Bug fix - The Hex and Dec settings was not correct in preferences - done...

2.Bug fix - reinstall default palette failure as the user defined colors was not changed to deafult value - done...

3.Add new optiomal argument: add any picture ( .bmp or .jpg ) as spectrum to pick colors from...

4.Changed the 'User define' control name to 'Spectrum'...

5.Add a toggle control if 'ColorPickImages' directory is present...

6.Add an option to include a directory of spectrum images to toggle between and keep the selected...

7.Add Three color global variables, $COLORPICK_Red, $COLORPICK_Green, $COLORPICK_Blue

8.Changed the spectrum images from .bmp to .jpg

9.Bug fix - The save new palette was not saving correctly - done...

10.Add new optiomal argument: initiate color value...

Free to download from site:

http://www.sitecenter.dk/latenight/nss-fol...rPick%20UDF.zip

Documentation is in autoit3 style with a 'ColorPick Management' script, palette files and spectrum images included...

kjactive :)

Edited by kjactive

Share this post


Link to post
Share on other sites

Update and bug fix

Rev. 1.4.06

1.Bug fix - The red and blue colors was in some conditions reverse ( now: BBGGRR ) - fixed

2.Changed the copy to clipboard option as to not return a value and return is 0

3.added a hwnd owner argument...

4.add a Colorpick macro tool 'ColorPick.exe' that put color values into spots in a editer as choice ( SciTE * )

Download from site:

http://www.sitecenter.dk/latenight/nss-fol...rPick%20UDF.zip

kjactive :)

Share this post


Link to post
Share on other sites

Update and bug fix

Rev. 1.4.06

1.Bug fix - The red and blue colors was in some conditions reverse ( now: BBGGRR ) - fixed

2.Changed the copy to clipboard option as to not return a value and return is 0

3.added a hwnd owner argument...

4.add a Colorpick macro tool 'ColorPick.exe' that put color values into spots in a editer as choice ( SciTE * )

Download from site:

http://www.sitecenter.dk/latenight/nss-fol...rPick%20UDF.zip

kjactive :)

I can't download the file, could you re-upload it?


Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

Share this post


Link to post
Share on other sites

1.Bug fix - The red and blue colors was in some conditions reverse ( now: BBGGRR ) - fixed

AFAIK most colors are now done in RGB (RRGGBB) format, so why not give users the option for either RGB or BGR.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0