Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Crazy Scripting : ColorPicker GENIE 1.00


  • Please log in to reply
36 replies to this topic
SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

About the ColorPicker Tool - [ ColorPicker.ahk ]

Posted Image

You may use this ColorPicker Tool from your Script by including this script
and call it with ColorPicker() function.

Example:

CurrentColor  := "FFFFFF"
SelectedColor := ColorPicker(CurrentColor)
Return
#Include ColorPicker.ahk

[*:r6g9qk7g]This Utility will ALSO run as standalone.
[*:r6g9qk7g]Will remember its last GUI Position ( through INI File )
[*:r6g9qk7g]16 Favorite colors can be stored ( through INI File).
When 17th color is added 1st Color will be removed
[*:r6g9qk7g]One may use the Colors.htm provided in the bundle to select favorite colors.

[*:r6g9qk7g]ColorPicker_GENIE(.ahk) is an example of a superscript that calls the ColorPicker() effectively.

Credits :

Inspired by / Ideas have been adapted from,

Krappy Color Picker
by Lego_Coder / Miguel Agullo
http://www.autohotke...opic.php?t=6693

Function StringSlice() called in this Utlity.
Written by me and posted @ http://www.autohotke...p?p=53084#53084
Mr.Laszlo Hars was very kind to optimise it & remove the bugs.
His Post is @ http://www.autohotke...p?p=53092#53092
[/list]


Posted Image [ Helper App for AHK Scripting. ]

ColorPicker GENIE is a clipboard monitoring utility that waits until the Clipboard contains a Valid Color Code
and when finds one - pops up the ColorPicker Utility. The changed Color code will be pasted to the window
that was active when ColorPicker Popped up.

Amidst AHK Scripting, one may find a requirement to pick a suitable color for a GUI background, Text Control etc.

With ColorPicker GENIE running in the System Tray, life will be easier.


Insert a Color Code : Press Control+Win+Insert ... and the ColorPicker pops up. Select a Color and Press okay ... you're done.

Replace/Preview a Color code : Double Click on the Color Code - Right Click - Copy ... and the ColorPicker pops up.
Select a Color and Press okay ... you're done.

Supported prefixes for Color Codes are "c" and "#"

For eg. HEX Code for "White color" will pop-up the ColorPicker when found in Clipboard as

FFFFFF
cFFFFFF
#FFFFFF

Important Note: When AHK Scripting - "Double clicking" is enough for selecting the Color code. The leading or trailing spaces will be taken care of. The GENIE pastes back the edited Color code with exact number of leading/trailing spaces as found in clipboard.

Double clicking the "Tray Icon" will Pause/Resume the script. However manual insertion is always possible with hotkey Control+WIN+Insert.

Though written as a "Helper App" for/in AutoHotkey, this utility will be helpful for editing Color codes contained in HTML & AGU's BBCode Writer . :)

Note: This Script requires ColorPicker.ahk for functioning.

[/list]


Snapshots of ColorPicker GENIE @ work

The Prime use! Helping in AHK Scripting.

=> Just double click of the Color code - Right click - Copy ... and the ColorPicker pops up!

Posted Image

Just curious! Previewing a color code given in AutoHotkey Documentation! :)

Posted Image

Using it in AGU's BBCode Writer :)

Posted Image

Crazy!! I use it in PaintShop Pro 6.00
See the HTML Code provided as a edit field in PSP 6.
I modify it with ColorPicker GENIE because I find incrementing the
Color values to be more precise when done with ColorPicker GENIE`s Sliders.

Posted Image


DOWNLOAD:

[*:r6g9qk7g]ColorPicker 1.00 Beta [13.1K] - Added 27-Apr-2006

[*:r6g9qk7g] ColorPicker 1.20 Beta [13.6K] - Added 18-Jun-2006
Feedback will be highly appreciated .. Regards, :)



Edit: 3-Jul-2008 : An updated version of Color Picker Genie has been Posted Vixay Xavier here: 205684

AGU
  • Guests
  • Last active:
  • Joined: --
Man, this is breathtaking. :mrgreen:

This will definitely help me a lot for webdesigning. A nice, quick and useful little helper. :D
____________________
Cheers
AGU

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

Man, this is breathtaking. :mrgreen:

This will definitely help me a lot for webdesigning. A nice, quick and useful little helper. :D
____________________
Cheers
AGU


Thanks a lot AGU .. Regards, :D
kWo4Lk1.png

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Noboby else ?!! :shock:

PS: .. and I thought I had presented the most Colorful GUI that would ever be written in AHK. :cry:
kWo4Lk1.png

bLisTeRinG
  • Members
  • 45 posts
  • Last active: Nov 07 2012 11:15 AM
  • Joined: 15 Nov 2004
This is the colour-picker I always wanted! :idea: Very stable, works just as you said (on my 'adapted' win98se system).

I'm taking my old colour-picker down to the recycling station.

Thanks

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Dear bLisTeRing, :D

Thanks for posting your view ( and *bumping* this Topic )
Its very nice for me to know someone really likes this Util.

Color Picker 2.00 will released soon. Download link for Color Picker 1.00 will still be provided.

What about the GENIE? Do you feel some feature could be added to it? Or just keep it simple?

Regards, :)
kWo4Lk1.png

Lego_Coder
  • Members
  • 8 posts
  • Last active: May 27 2006 10:39 PM
  • Joined: 03 Dec 2005
Very nice!

Thanks for taking the load off me :D

Cheers

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

Very nice!


Thanks :D
kWo4Lk1.png

Winkie
  • Members
  • 10 posts
  • Last active:
  • Joined: 11 Apr 2006
Very nice and small script!

What about the GENIE? Do you feel some feature could be added to it? Or just keep it simple?


A feature whats missing is a a colorpicker.
I'm going to implement Skrommels WhatColor myself.
Winkie

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Dear Winkie, :)

Very nice and small script!


Thanks! :D

A feature whats missing is a a colorpicker.


Yes it does lack! I am planning to add this feature to the ColorPicker itself instead of the Genie!.

Thanks for the suggestion..

Regards, :)
kWo4Lk1.png

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
ColorPicker Tool has been updated from 1.00 Beta to 1.20 Beta.

Snapshot of Version 1.00 Beta:
Posted Image

Snapshot of Version 1.20 Beta:
Posted Image

Added Feature:[*:82lhhtf7]Gradient Colorband for better selection of lighter/darker shade of a Color.
[*:82lhhtf7]Gradient Colorband will be updated whenever Current, Previous, Basic Colors,
Favorite Colors are clicked upon.Download ColorPicker 1.20 Beta [13.6K]

Rajat
  • Members
  • 1904 posts
  • Last active: Jul 17 2015 07:45 AM
  • Joined: 28 Mar 2004
cool work there Goyyah!
this is a nifty tool.

MIA

CleanNews.in : Bite sized latest news headlines from India with zero bloat


polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Good alternative to the colour-select dialog box.
Suggestion: why not add support for CMYK - it will help with image editing.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


Roland
  • Members
  • 307 posts
  • Last active: Mar 09 2014 07:55 PM
  • Joined: 08 Jun 2006
Very nice Goyyah! Love it.

Two suggestions if I may:
Turning critical off before "WinWaitClose" prevents the script from crashing when the ColorPicker is called from a critical thread. I should know that, but managed to do it anyway right away. :)
The mouse pointer often gets stuck when clicking on a listview - you can prevent that by using "-Multi" in the listview options.´

Thanks for this great tool.

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

cool work there Goyyah!
this is a nifty tool.


Thanks for trying this utility Rajat . :)

Good alternative to the colour-select dialog box.
Suggestion: why not add support for CMYK - it will help with image editing.


Thanks for the suggestion! I will look into it. :)

Two suggestions if I may:
Turning critical off before "WinWaitClose" prevents the script from crashing when the ColorPicker is called from a critical thread. I should know that, but managed to do it anyway right away.
The mouse pointer often gets stuck when clicking on a listview - you can prevent that by using "-Multi" in the listview options.´


Thats a very valuable feedback! Many thanks Roland. :)
I will post the updated code soon.

Regards to all :)
kWo4Lk1.png