Many occurences of one plugin (1 Viewer)

zebons

Portal Pro
January 2, 2006
1,484
114
Many users ask if it's possible to have multi occurences of my plugin MyFilms (they have many AMT XML videos databases).
I try to put another copy of my dll in the directory mediaportal\plugin\windows and I got effectivly two entries in the MP's menu for my plugin...
My qustion : is there anyway to know which occurence of the plugin was called by the user ? Can I get the name of the dll called by MP when the user select a specific entry in the menu ?
Another possibility : in MyFilms's setup we can change the MP's Menu text for that plugin; so can I get that value in the plugin ?
 

patrick

Portal Pro
April 20, 2005
608
45
Southeast
Home Country
United States of America United States of America
I am not sure I understand what you are looking for but..

zebons said:
How to get the dll's filename into a plugin ?

Calling from within your plugin:
System.Reflection.Assembly.GetExecutingAssembly().Location;

zebons said:
MyFilms's setup we can change the MP's Menu text for that plugin; so can I get that value in the plugin ?

If you can already change the name within the setup then I do not understand why you cannot access it within your plugin the same way.

You might also check out the mulit-shortcut plugin:
https://forum.team-mediaportal.com/multishortcut_plugin_execute_programs_home_menu-t7425.html


patrick
 

Users who are viewing this thread

Top Bottom