Skip to main content
Inspiring
June 6, 2015
Question

$.colorPicker behavior and access to the Adobe color picker?

  • June 6, 2015
  • 1 reply
  • 487 views

Hey all,

I'm curious about scripting access to the Adobe color picker because of some limitations in the system color picker.  I prefer the simpler interface and love that it has an 'OK' and 'Cancel' button.  Does anyone know of a way, via scripting, to access this?  Any help or point in the right direction is greatly appreciated.

If the system color picker is the only option (via $.colorPicker), is there a way to determine how the window is closed?  One thing I'm noticing is that when you open the system color picker and pick a new color, there is no way to close the color picker without making a change (same as hitting 'Cancel').  The only way I know of to close that window and make a selection is clicking the red 'X' and hitting 'Esc.' I haven't seen any documentation about this so I'm not sure if it's available in the scripting environment but it would awesome to be able to determine which way the window was closed.  I'd want to build in the behavior that hitting the red 'X' is the same as hitting 'Ok' and hitting 'Esc' is the same as 'Cancel.'

As for workarounds, it appears that keydown/keyup event listeners don't capture "special" keys like 'Esc' and 'Tab.'  Anyone know of a way to detect the escape key when the window has focus? 

Thanks!

Calvin

This topic has been closed for replies.

1 reply

June 8, 2015

Yeah,I know that feeling.The color picker dialog for windows is ugly!

So a few days ago I wrote a color picker,which is something like Adobe Kuler,but only can pick one color at one time.

But I have no idea how to upload file to the forum.Anyone can help me ?