Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Doubling of events with MediaPortal [+Fix}

Questions and comments specific to a particular plugin should go here.
Post Reply
KairuByte
Posts: 8
Joined: Sat Dec 01, 2012 12:24 am

Doubling of events with MediaPortal [+Fix}

Post by KairuByte »

I ran into a small issue with the MediaPortal plugin, where all events were being doubled. It only happened when MediaPortal actions were being triggered.

I looked into it and somehow the method of hwnd fetching was the culprit (Still not sure why), so I patched the plugin with a slightly different method.

I don't have the original file so I can't post a play by play, but basically we use FindWindow() instead of WindowMatcher()

Updated file attached. Just drop it into the MediaPortal folder of your EventGhost installation.

PS: If anyone feels like verifying that this isn't malicious, feel free!
Attachments
__init__.py
MediaPortal Plugin
(4.66 KiB) Downloaded 217 times
Post Reply