Skip to main content
AntoinePerez
Participating Frequently
July 30, 2014
Question

Mouse events listener

  • July 30, 2014
  • 2 replies
  • 1083 views

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?

This topic has been closed for replies.

2 replies

Pedro Cortez Marques
Legend
July 30, 2014

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.

Inspiring
July 30, 2014

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.

Pedro Cortez Marques
Legend
July 30, 2014

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…

Inspiring
July 30, 2014

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

AntoinePerez
Participating Frequently
July 30, 2014

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

Inspiring
July 30, 2014

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