• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

No way to get mouse position, right?

Advocate ,
May 14, 2011 May 14, 2011

Copy link to clipboard

Copied

Hello,

could you gently confirm that there's no way to retrieve the x,y data (that the Info Palette is constantly showing while mousing around the image), not to mention the "live" eyedropper as well?

Thanks,

Davide

TOPICS
Actions and scripting

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 15, 2011 May 15, 2011

To the best of my knowledge that is still the case.

What are you intending to use that information for?

Votes

Translate

Translate
Adobe
Community Expert ,
May 15, 2011 May 15, 2011

Copy link to clipboard

Copied

To the best of my knowledge that is still the case.

What are you intending to use that information for?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 15, 2011 May 15, 2011

Copy link to clipboard

Copied

Still wondering how to build a better info palette in photoshop (CS SDK + ESTK). It would be nice to avoid the color samplers workaround and access the original info palette numbers.

Thanks anyway!

Davide

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 15, 2011 May 15, 2011

Copy link to clipboard

Copied

I concur, it would be great to be able to access the »cursor-feed« (or whatever it is poperly called).

But maybe someone else has more insight into the issue than me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 10, 2019 Jan 10, 2019

Copy link to clipboard

Copied

Was this added since 2011? 😃
I really need to get live Info values in my script

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 11, 2019 Jan 11, 2019

Copy link to clipboard

Copied

r-bin​ Looks like Adobe has issues and your message was deleted.

Anyways, your proposed solution will only work in the extension panel itself.

I need to get pixel info values when user hovers mouse over the image he edits. In a similar fashion as it works when user is working with Curves and then can select a Hand/Move tool and hove over image, moving the curve up/down

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 11, 2019 Jan 11, 2019

Copy link to clipboard

Copied

I did not quite understand what was needed. Therefore, deleted.

Here is a temporary solution for CC2018. In CS6, everything is much simpler.
If this suits you, then you can further refine.

var d = null;

function handle(e) { if (!d) return; t1.text = e.screenX; t2.text = e.screenY;}

var p = new Window("palette", undefined, undefined, { borderless: true } );

p.preferredSize = [$.screens[0].right, $.screens[0].bottom];

p.margins = 0;

var b = p.add("button");

b.preferredSize = [$.screens[0].right, $.screens[0].bottom];

p.addEventListener ("mousemove", handle, false);

b.onClick = function() { d.hide(); d.show(); }

p.opacity = 0.01;

p.show();

d = new Window("palette", undefined, undefined, {  resizeable: true, minimizeButton:true, maximizeButton: true, closeButton: false,} );

d.preferredSize = [200,200];

var t1 = d.add("statictext");

t1.preferredSize.width = 150;

var t2 = d.add("statictext");

t2.preferredSize.width = 150;

d.show();

while (d.visible)

    {

    app.bringToFront();

    }

p.close();

p = null;

d.close();

d = null;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

Sorry but I don’t get it, could you please elaborate?

How do you retrieve the mouse-position data with that Script?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

This is a bad way. Forget it.

p.s. In order for the script not to hang, you need to put in the Actions panel the playback mode step-by-step.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

Thanks for getting back on this.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

My solution is identical to what @r-bin suggested: we create a dialog with a button in full screen size, an event listener is created for the mouse position. The difference in details is due solely to the formulation of the task.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

LATEST

I think I couldn’t get it to work back then, but @r-bin mentioned version-issues so it may have been owed to that. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines