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

Mouse events listener

Community Beginner ,
Jul 30, 2014 Jul 30, 2014

Copy link to clipboard

Copied

I'm having trouble listening for mouse events in Bridge CS6.

This example script works well in Photoshop and Toolkit, but not in Bridge:

var w =new Window ("dialog");
var b = w.add ("button", undefined, "Qwerty");

b.addEventListener("click", function (k){whatsup (k)});

function whatsup (p)
{
  if(p.button == 2){ $.writeln ("Right-button clicked.") }
  if(p.shiftKey){ $.writeln ("Shift key pressed.") }
  $.writeln ("X: "+ p.clientX);
  $.writeln ("Y: "+ p.clientY);
}
w.show ();

Other event types like resize or focus work well.

The event types that seem to be broken are: mousedown, mouseup, mouseover, mouseout, click

Is there a work-around to this problem?

TOPICS
Scripting

Views

734

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
Guru ,
Jul 30, 2014 Jul 30, 2014

Copy link to clipboard

Copied

Paul told me a lot was broken in bridge CS6.

I never went past CS5 because of this.

I think the not bothering with fixes helped drive him away...

If you can't find the answer in one of his d posts then don't hold your breath...

Sent from my iPhone

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 Beginner ,
Jul 30, 2014 Jul 30, 2014

Copy link to clipboard

Copied

Thanks, looks like I'm rolling back to CS5.5 ...

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
Guru ,
Jul 30, 2014 Jul 30, 2014

Copy link to clipboard

Copied

I know Paul had issues but you just don't see anything about what's fixed and when.

Sorry I don't have good news but this forum is very low traffic. Someone else on newer may pop by...?

Sent from my iPhone

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
Enthusiast ,
Jul 30, 2014 Jul 30, 2014

Copy link to clipboard

Copied

Bridge CS6 framework has several bugs that will be never more updated.

Mouse listeners is only one of them. On Bridge scriptUI they do not work

I don't use CS5.

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
Guru ,
Jul 30, 2014 Jul 30, 2014

Copy link to clipboard

Copied

Pedro, are you now using cc bridge?

Has anything been fixed...?

Im long overdue moving up...

but I can't afford to be doing one forward two back.

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
Enthusiast ,
Jul 30, 2014 Jul 30, 2014

Copy link to clipboard

Copied

LATEST

Only the video edition team is using CC.

We tried 2 times, on May and July to install 1 PC with CC and the apps (Photoshop and Bridge included) crashed several times.

CS6 still is more stable.

For my surprise, 90% of the code we have developed still works on photoshop/Bridge and now we are installing our 'private' company cloud network so my team will be editing also the photos from US on real time.

Recently I have had success in discovering simple tricks regarding Bridge that anyone needs or uses, but crucial to hard workflows like the one we have.

In that sense, may be next season we will be able to upgrade to cloud CC

We'll see…

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