Add Dialogue/Menu Button (1 Viewer)

jojo1411

Portal Pro
January 23, 2008
182
37
Home Country
Germany Germany
Hi,
I'm actually working on an enhancement for my WOL-PowerManager Plugin. The problem with the old version is, that everytime I enter one of the configured plugins the server will be waked up. But this wouldn't be necessary if the server is not required everytime.

For example: you've entered two shares in your Music Plugin, one is the local share the other one is a remote server. Most of the time you listen to the local share and only sometimes you want to access on the server.
It would be more senseful in this case to let the server sleep and only in the case if you want to hear music from the server you have the possibility to click on "Wake Server" button.

The question is now how can I add such a button. I know it's possible to make it as a windows plugin, but it would be a roundabout way for the User (from Music->Home->WOL-Plugin->"Wake Server button"->Home->Music)
Isn't there a option to add a button to this or this Menu? Or is there even a third way to implement this feature?

I would be grateful for every help!

Thanks,
jojo1411
 

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    AW: Add Dialogue/Menu Button

    .. if you just want the user let it do manually, it's probably the easiest to map a button to that action - so you don't need to go through all menus just to start the remote server.

    The better way would probably be to do that automatically - but there was a discussion in the past already - you will imho require codechange in mediaportal.

    Advantage would be, that for this case, you could handle full path and then decide, if or if not you have to start whatever server e.g. by grabbing the left part and check matching to your configured servers, e.f. \\myserver1\blablabla -> start myserver1 - and do nothing if it's local media (e.g. e:\music\song.mp3).
     

    Users who are viewing this thread

    Top Bottom