Input by Click for Pixel count

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

janaaa

Input by Click for Pixel count

Post by janaaa »

Hi all,

I'm new to this forum and also new to scripting. The normal Record-Play function for actions in PS works well for me for now, but I need a little "more". I hope that the scripts will be better.

I want to use the tools Rectangular Marquee or a Magic Wand and get back the pixel count.
When I click only one pixel, the magic wand should mark all similar pixels around (tolerance between 1 and 10). When I click 2 pixel or maybe 4, a circle/ellipse should come up.

So my question is, how can I start an action or script which is waiting for an input (click)? And how can I save the pixel count for a selection in a variable or get it on display as a message?

Thank you very much,
Janaaa