home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
help with nongui plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="samuel337" data-source="post: 8358" data-attributes="member: 10347"><p>Whoops, sorry. I just thought the situation though and realised my stupid mistake. If MP sent the INIT message as a global message, then all the windows would initialise (not good ;-) ). Instead MP sends it only to the window that needs opening.</p><p></p><p>I have two suggestions:</p><p>In the code you have now, tell your plugin to write to the log every message that it receives (Log.Write("GirderPlugin: received message: " + message.Message); ). Put this before the switch line. Go into MP, open and close a few windows and see if there are any messages sent that are useful.</p><p></p><p>The other suggestion is to maintain a timer which constantly checks the GUIWindowManager.ActiveWindow value - if it changes, do something. This is how Power Scheduler works. It seems clumsy, but it might be the only way.</p><p></p><p>Any one else got any suggestions?</p><p></p><p>Sam</p></blockquote><p></p>
[QUOTE="samuel337, post: 8358, member: 10347"] Whoops, sorry. I just thought the situation though and realised my stupid mistake. If MP sent the INIT message as a global message, then all the windows would initialise (not good ;-) ). Instead MP sends it only to the window that needs opening. I have two suggestions: In the code you have now, tell your plugin to write to the log every message that it receives (Log.Write("GirderPlugin: received message: " + message.Message); ). Put this before the switch line. Go into MP, open and close a few windows and see if there are any messages sent that are useful. The other suggestion is to maintain a timer which constantly checks the GUIWindowManager.ActiveWindow value - if it changes, do something. This is how Power Scheduler works. It seems clumsy, but it might be the only way. Any one else got any suggestions? Sam [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
help with nongui plugin
Contact us
RSS
Top
Bottom