View Full Version : FREE PLUGIN: ColorDialog
Displays the standard windows color dialog, returning the colors in decimal, red, blue, green, and hex values.
Download the attached file, unzip the plugin to your AMS's (or any other IR product that supports Action Plugins for that matter) Plugins\Actions folder, then run the example project.
Roboblue
02-19-2007, 12:45 PM
Great Stuff WORM
thanx again.
Here's an updated version. I added another action to get the color under the mouse pointer. It too returns the values in a table, letting you choose, Decimal, RGB, or Hex.
New Plugin and example attached
eric_darling
02-19-2007, 03:20 PM
Cool stuff, Worm... Are you able to return CMYK values as well? That's one thing missing from the color dialog in AMS.
I've stumbled across formula's to convert RGB to CMYK
http://en.wikipedia.org/wiki/CMYK
Is it something you need?
Roboblue
02-19-2007, 08:35 PM
Well, since WORM was kind enough to release this free plugin, here's my first color board/colorpicker project using it.
It has a Picker (dropper) and a Color Board with three outputs, Decimal, HEX, and RGB
It has an opacity setting (manual slider, not auto, was having problems with multi timers, again).
Has On Top.
Has copy to clipboard for the color values.
Also, if you are doing a copy and paste to an Object Properties pane, AMS wants the # added to the HEX value. Photoshop adds a # to a copied HEX value and will truncate the value if you try to paste with the #. Other third party apps react the same way with no constancy. So I added a Radio button to add/subtract the # from the displayed HEX value, before or after it has been picked.
Click on the color shape to get the color board. Click on the dropper for the picker move the mouse over the on screen color you want and press the SpaceBar to grab the color.
I have the Page Timer set for (10) fired on the dropper button click, so if you have any timing problems, set it for (100).
Anyway, hope this helps a few as I have to pay back WORM for the freebies. Except for the opacity dll (lost track of who did it, but thanx if it was you) The rest is WORM's work (sounds ominous doesn't it, Worm's work...):eek:
eric_darling
02-19-2007, 08:39 PM
Well, I've been spoiled by the Photoshop color dialog. I realize I can always run the conversion myself, but it's nice to have an instant glance to confirm that settings match. Corporate logos are usually specified with CMYK values, so in order to make sure I'm matching the right color values for GUI objects in AMS, it would be great to have the instant feedback.
Dermot
02-19-2007, 09:18 PM
Very nice Worm, thanks.
Nice little app Roboblue. If you change the slider OnPosition Change code to this, you won't need the Set button for the transparency.
sOpac = e_Pos
Input.SetText("OpacityIn", sOpac);
handle = Application.GetWndHandle();
long = DLL.CallFunction("AutoPlay\\Docs\\wTrans.dll", "SetWindowTransparency", handle..","..sOpac, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
@Robo
Cool biz on the project, and yep the opacity DLL was something I threw together.
@Eric
I'll see if I can throw CMYK in there for ya.
Roboblue
02-20-2007, 01:03 AM
Here is the apz with the opacity set for max when opening, and changes with slider.
Much better.
Thanx Guys.
mgokkaya
02-20-2007, 03:05 AM
why i get this error ??
Error: Plugin "ColorDialog\ColorDialog.lmd" is not licensed for re-distribution
Roboblue
02-20-2007, 03:43 AM
Another minor bug with the Lil' colorpicker.
Move the code
Slider.SetSliderPos("XPacity", 255);
from Page On-Show
and put it on the Slider On Focus.
In the ColorDialog folder there should be three files
ColorDialog.lmd
ColorDialog.lic
ColorDialog_Help.htm
make sure you habe all three in the folder, especially the lmd and lic files and try again.
why i get this error ??
Error: Plugin "ColorDialog\ColorDialog.lmd" is not licensed for re-distribution
rhosk
02-20-2007, 04:00 PM
This is some nice stuff, thanks !!
mgokkaya
02-21-2007, 03:32 AM
how can i make something like that with ams6 ???
SiNisTer
03-30-2007, 07:18 AM
nice stuff dude
Had to comment on this..its a cool idea
Thanks n,
keep it rockin:yes
There is a new version on my web site with an added action to allow for you to get the pixel color at a given X,Y position on the screen.
i.e.
tblColorInfo = ColorDialog.GetPixelColorAtXY(100,100)
RizlaUK
04-16-2007, 04:32 PM
Super cool :yes that will come in handy
supplying functions on demand now worm .. lol ;)
Yea, I'll have to talk to my QA staff. They should've realized the need for this function. It was long over due :)
CyberRBT
04-16-2007, 07:08 PM
@Worm:
:lol
You <----
Thank YOU once again!
mz241508
05-08-2007, 10:07 AM
Thanks for this Worm! :yes
watch out for the VISTA bug. This plugin, the font plugin, and it appears the Timer plugin have an issue on some VISTA machines. I'm having a bugger of a time getting to the bottom of it.
Stobe
08-05-2008, 09:26 AM
What did I do wrong?
I had this plugin working in a project, and recently updated my version of AMS (which shouldn't have done anything?)
Now I get this when I try to publish:
Error: Plugin "ColorDialog\ColorDialog.lmd" is not licensed for re-distribution
Am I not allowed to use it in a project?
Thanks for any help,
Stobe
RizlaUK
08-05-2008, 10:39 AM
you need to install the plugin again, but for AMS7
also, i hate saying this about worms plugins but this plugin has a unresolved bug on some vista machines, but there are various dll's on the forum that do the same thing, heres one: http://www.indigorose.com/forums/showthread.php?t=19781
Stobe
08-05-2008, 01:48 PM
That did the trick. Forgot I had to copy over the plugins into the program directory, not just the project folders.
Thanks!
watch out for the VISTA bug. This plugin, the font plugin, and it appears the Timer plugin have an issue on some VISTA machines. I'm having a bugger of a time getting to the bottom of it.
What kind of a bug, Worm?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.