# Mouseevents and debugging

**URL:** https://forums.plex.tv/t/mouseevents-and-debugging/3462
**Category:** Dev/API Corner
**Tags:** plugin-dev
**Created:** [January 21, 2010, 7:05pm UTC](https://forums.plex.tv/t/mouseevents-and-debugging/3462 "2010-01-21T19:05:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sunekibs](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sunekibs](https://forums.plex.tv/u/sunekibs)
#### Post date: [January 21, 2010, 7:05pm UTC](https://forums.plex.tv/t/mouseevents-and-debugging/3462/1 "2010-01-21T19:05:20Z")

</div>

Hi,  
  
  
  
I have this silverlight player i want to handle with mouseclicks in my site config. The player plays just fine, and i can see all of the silverlight element in Plex. And I am positive the on x=55 and y=595 there is a Play/Pause button.  
  
  
  
The log says

```auto

LINE: PAUSE<br />
Executing Mouse click<br />
Mouse click at 55, 595<br />
Executing Moving to state paused<br />
sendPluginMouseDown: point (55,595) mapped to (55.000000,125.000000)<br />
mouseDown:<br />
Mouse down event 55, 595<br />
mouseUp:<br />
Mouse up event 55, 595<br />

```

  
  
and my site config  
  

```auto

<state name="playing"><br />
        <event><br />
            <condition><br />
                <command name="pause" /><br />
            </condition><br />
            <action><br />
                <click x="55" y="595" /><br />
                <goto state="paused" /><br />
            </action><br />
        </event><br />
    </state><br />
<br />
    <state name="paused"><br />
        <event><br />
            <condition><br />
                <command name="play" /><br />
            </condition><br />
            <action><br />
                <click x="55" y="595" /><br />
                <goto state="playing" /><br />
            </action><br />
        </event><br />
    </state>

```

  
  
Nothing happens inside the player, is there some way to further debug, like see visual where the mouse actual clicks?

---

<div class="post-metadata">

### Author: ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)
#### Post date: [January 22, 2010, 10:24pm UTC](https://forums.plex.tv/t/mouseevents-and-debugging/3462/2 "2010-01-22T22:24:31Z")

</div>

I’ve found that clicks can be a bit odd, so you might want to try this, which helped out in the Netflix player:

```auto

<br />
<click x="56" y="-65" skipMouseUp="true" /><br />

```

  
  
Otherwise, nine times out of ten, it's actually a case of clicking in the wrong place :) Are you sure the player isn't resizing or something like that?

---

<div class="post-metadata">

### Author: ![sunekibs](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sunekibs](https://forums.plex.tv/u/sunekibs)
#### Post date: [January 23, 2010, 11:25am UTC](https://forums.plex.tv/t/mouseevents-and-debugging/3462/3 "2010-01-23T11:25:00Z")

</div>

haven’t tried the skipMouseUp, will test that later on.  
  
  
  
I am pretty sure it isn’t resizing, as my crop works perfectly, also, I can’t get the seeker simple to work, again it looks like it looks the wrong place.  
  
  
  
is there some debugging I can enable in PMS? getting it to log what color it sees at an XY coord?

---

<div class="post-metadata">

### Author: ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)
#### Post date: [January 23, 2010, 11:27am UTC](https://forums.plex.tv/t/mouseevents-and-debugging/3462/4 "2010-01-23T11:27:23Z")

</div>

There isn’t at this time (just because it spews a lot of information), but if you contact me privately I can provide a build which does output that information.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [December 20, 2019, 8:35pm UTC](https://forums.plex.tv/t/mouseevents-and-debugging/3462/5 "2019-12-20T20:35:44Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
