MultiShortcut Plugin (Uavailable) in DWHD skin (1 Viewer)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,513
    529
    South of France
    France France
    Country flag
    Here we are !
    For it work in basic home, I gave you an example :
    The plugin name is calculatrice.
    The buttonCaption is Calculator.
    The plugin ID is 6044.

    zz4.png

    Then :

    zz3.png

    And calc is launched is you have the good plugin ID
    Here is the xml BasicHomeEditorDefines.xml :


    XML:
      <define property="true" evaluateNow="true">#HOME16.name:Calculator</define>
    
      <define property="true" evaluateNow="true">#HOME16.plugin:calculatrice</define>
    
      <define property="true" evaluateNow="true">#HOME16.hyperlink:6044</define>
    
      <define property="true" evaluateNow="true">#HOME16.parameter:</define>
    
      <define property="true" evaluateNow="true">#HOME16.hover:hover_calc.png</define>
    
      <define property="true" evaluateNow="true">#HOME16.background:Animations\BasicHome\plugins.jpg</define>
    
      <define property="true" evaluateNow="true">#HOME16.iconfocus:tb_menu.png</define>
    
      <define property="true" evaluateNow="true">#HOME16.iconnofocus:tb_menuNF.png</define>
    
      <define property="true" evaluateNow="true">#HOME16.active:#(iif(or(eq(#HOME16.plugin,''),plugin.isenabled(#HOME16.plugin)),' ',''))</define>
    
      <define property="true" evaluateNow="true">#HOME16:#(string.format('{0}{1}',#HOME16.name,iif(eq(#HOME16.active,' '),'',#PLUGERROR)))</define>
    Note that you can change the name "Calculator" in the xml without problem BUT, you have to fill the good plugin name (calculatrice) and the plugin ID (6044) here.

    Hope it helps...
     

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    1,632
    1,231
    Germany Germany
    Country flag
    Hope it helps...
    Yes one is now working in Home, see attached screenshot, I was missing the hyperlink plugin ID definition.(y)(y):).
    I still can't get the 2nd shortcut to display in home, still no problem in Plugins but despite editing HOME17 with all the correct settings including the different names and ID it is not appearing in the Home editor.:(.

    Late now Iwill look further tomorrow.

    MP1-1.jpg
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,513
    529
    South of France
    France France
    Country flag
    For it works :
    Add a newer MultiShortcut plugin.
    Don't forget to run dllfix as an administrator.
    Configure it :

    zz1.png

    Modify your BasicHomeEditorDefines.xml according to your plugin :

    XML:
      <define property="true" evaluateNow="true">#HOME16.name:Calculator</define>
      <define property="true" evaluateNow="true">#HOME16.plugin:calculatrice</define>
      <define property="true" evaluateNow="true">#HOME16.hyperlink:6044</define>
      <define property="true" evaluateNow="true">#HOME16.parameter:</define>
      <define property="true" evaluateNow="true">#HOME16.hover:hover_calc.png</define>
      <define property="true" evaluateNow="true">#HOME16.background:Animations\BasicHome\plugins.jpg</define>
      <define property="true" evaluateNow="true">#HOME16.iconfocus:tb_menu.png</define>
      <define property="true" evaluateNow="true">#HOME16.iconnofocus:tb_menuNF.png</define>
      <define property="true" evaluateNow="true">#HOME16.active:#(iif(or(eq(#HOME16.plugin,''),plugin.isenabled(#HOME16.plugin)),' ',''))</define>
      <define property="true" evaluateNow="true">#HOME16:#(string.format('{0}{1}',#HOME16.name,iif(eq(#HOME16.active,' '),'',#PLUGERROR)))</define>
      <define property="true" evaluateNow="true">#HOME16.latestmedia:121</define>
     
      <define property="true" evaluateNow="true">#HOME17.name:Notepad</define>
      <define property="true" evaluateNow="true">#HOME17.plugin:bloc-notes</define>
      <define property="true" evaluateNow="true">#HOME17.hyperlink:4345</define>
      <define property="true" evaluateNow="true">#HOME17.parameter:</define>
      <define property="true" evaluateNow="true">#HOME17.hover:hover_notepad.png</define>
      <define property="true" evaluateNow="true">#HOME17.background:Animations\BasicHome\plugins.jpg</define>
      <define property="true" evaluateNow="true">#HOME17.iconfocus:tb_menu.png</define>
      <define property="true" evaluateNow="true">#HOME17.iconnofocus:tb_menuNF.png</define>
      <define property="true" evaluateNow="true">#HOME17.active:#(iif(or(eq(#HOME17.plugin,''),plugin.isenabled(#HOME17.plugin)),' ',''))</define>
      <define property="true" evaluateNow="true">#HOME17:#(string.format('{0}{1}',#HOME17.name,iif(eq(#HOME17.active,' '),'',#PLUGERROR)))</define>
    BUT don't forget another line in BasicHomeEditorDefines.xml.
    Go to begining of your xml file.
    Search for home16, you should find this :

    XML:
      <define property="true" evaluateNow="true">#list.HOME:#(#list.header.left)#(L(974))#(#list.header.right),#NONE,#HOME1,#HOME2,#HOME3,#HOME4,#HOME5,#HOME6,#HOME7,#HOME8,#HOME9,#HOME10,#HOME11,#HOME12,#HOME13,#HOME14,#HOME15,#HOME16</define>
    Add the home17 like this :

    XML:
      <define property="true" evaluateNow="true">#list.HOME:#(#list.header.left)#(L(974))#(#list.header.right),#NONE,#HOME1,#HOME2,#HOME3,#HOME4,#HOME5,#HOME6,#HOME7,#HOME8,#HOME9,#HOME10,#HOME11,#HOME12,#HOME13,#HOME14,#HOME15,#HOME16,#HOME17</define>
    And VOILA :

    zz2.png
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,838
    9,233
    Lanzarote
    Germany Germany
    Country flag
    Well, I wonder if I should add those #HOMExx to editor - will be difficult for a normal user to adapt and can break everything if user makes a typo.
    Maybe it is possible in future to make this plugin generic enough that it works like all the other plugins?
    And as it´s alway working from Home, why do the change in editor defines?
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,513
    529
    South of France
    France France
    Country flag
    Well, I wonder if I should add those #HOMExx to editor - will be difficult for a normal user to adapt and can break everything if user makes a typo.
    Well, I wonder too.
    As explained before, this plugin is particular, it works a bit as a free electron and yes, there is a risk of users's typo for the moment.

    Maybe it is possible in future to make this plugin generic enough that it works like all the other plugins?
    I am afraid not.
    For example, a plugin ID is generated randomly, to try as max as possible to not interfere with others plugins (there is a risk but, minor).
    At least, I worked for this plugin that ID can be changed by users after generate.

    And as it´s alway working from Home, why do the change in editor defines?
    It's up to you for removing the MultiShortcut plugin in basic home, it's a skinner choice ;)...
    If you need to integrate it on basic home (I mean easier for users) then, we can talk about.
    - For example, we can decide a range for MultiShortcut plugins ID, reserved only for it. (if you want a max of 3, 5 or 10 MultiShortcut plugins)

    - We could also discuss what properties you need, how you would like to have it, and so on...
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    11,883
    6,725
    Kyiv
    Ukraine Ukraine
    Country flag
    For example, we can decide a range for MultiShortcut plugins ID, reserved only for it. (if you want a max of 3, 5 or 10 MultiShortcut plugins)
    For BasicHome just one identifier and a link to the configured program are enough. Ie:
    Plugin ID - NNN Hyperlink 1 (run program with id 1 in MultiShortcut config)
    Plugin ID - NNN Hyperlink 2 (run program with id 2 in MultiShortcut config)
    In Home/Plugin Window we have one plugin instance - MultiShortcut and when we run it, than plugin show table with programs:
    1 Calculator
    2 Notepad
    ...
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,513
    529
    South of France
    France France
    Country flag
    Well, I don't understand.
    Can you be more precise, please ?
    For example, you need, when dllfix is executed that, I create a specific .xml (ie : MultiShortcut BasicHome.xml) with the necessary informations ?
    MultiShortcut already create a MultiShortcut.xml in the MP data folder.
    Please, take a look at the attached file.

    There are all informations needed. (Plugin ID, Plugin Name, ...)
    Is it enough for you ?
     

    Attachments

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    11,883
    6,725
    Kyiv
    Ukraine Ukraine
    Country flag
    I do not use this plugin and do not know how it works. But in theory, to run any program, you need one plugin that can call any number of programs. But in the home/plugin window there will be one item, in a basic home window you can make any number of items for one plug-in with different parameters.

    Ie.

    Plugin settings:
    1 - Calculator - c:\programs\calculator.exe
    2 - Notepad - c:\programs\notepad.exe

    In Home/Plugin window you see one plugin with Name like MultiShortcut, when you press on it you see List like:
    1 - Calculator
    2 - Notepad

    In basic Home you can create multi button for one plugin with different call parameters like:
    Name: Calculator - hyperlink NNNN - parameter 1
    Name: Notepad - hyperlink NNNN - parameter 2

    But for support this, need to redo the plugin. :barefoot:
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 3
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    C where is the Online Videos plugin General Support 1
    S Missing plugin for MP2 Plugin Development 1
    Similar threads

























    Top Bottom