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

catavolt

Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,961
    9,307
    Lanzarote
    Germany Germany
    Country flag
    Oops, the defines.xml was from PVHD...
    Will give you the one for DWHD later, visiting friends atm ;)

    Gesendet von meinem CMR-W09 mit Tapatalk
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,961
    9,307
    Lanzarote
    Germany Germany
    Country flag
    Here we go with BHED for DWHD ;)
    Problem is that I don´t know the name you give the shortcut in MP Config, which is then shown on the Plugins screen (or do you know a property for it?).
    The definition in BHED is as follows:
    XML:
    <define property="true" evaluateNow="true">#HOME16.name:MultiShortcut00</define>
      <define property="true" evaluateNow="true">#HOME16.plugin:MultiShortcut00</define>
      <define property="true" evaluateNow="true">#HOME16.hyperlink:8696</define>
      <define property="true" evaluateNow="true">#HOME16.parameter:</define>
      <define property="true" evaluateNow="true">#HOME16.hover:hover_my plugins.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:MultiShortcut01</define>
      <define property="true" evaluateNow="true">#HOME17.plugin:MultiShortcut01</define>
      <define property="true" evaluateNow="true">#HOME17.hyperlink:8696</define>
      <define property="true" evaluateNow="true">#HOME17.parameter:</define>
      <define property="true" evaluateNow="true">#HOME17.hover:hover_my plugins.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>
      <define property="true" evaluateNow="true">#HOME17.latestmedia:121</define>
    As you can see from the first 2 lines of the of each definition, I must give it a name (which is then shown in BasicHome) and the reference to the plugin (2nd line).
    As an experienced user you may edit the #HOME16.name:MultiShortcut00 to a name you gave it in the config, e.g. joecrows 1st shortcut:
    #HOME16.name:joecrows 1st shortcut which then will be shown as name in BasicHome ;)
    Have fun testing ;)
     

    Attachments

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    1,667
    1,253
    Germany Germany
    Country flag
    Problem is that I don´t know the name you give the shortcut in MP Config, which is then shown on the Plugins screen (or do you know a property for it?).
    Not sure but from the string .xml in launguage maybe ButtonCaption

    As per your instruction I edited in the same name in #HOME16.name:MultiShortcut00 as per the settings in MP Config, i.e "BBC1" this resulted in the Home GUI as in the attached screenshot, however doing the same for #HOME17.name:MultiShortcut00 did not result in a 2nd shortcut. The shortcut did not work either just rotated the buttons on the home GUI.

    mp1.jpg

    UPDATE:_
    I can add the shortcuts in the Titan skin home gui using the Titan Editor, which uses the actual .dll file name (not "BBC1" added to the settings in MP Config.) and the shortcuts do work from there.
     
    Last edited:

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    1,667
    1,253
    Germany Germany
    Country flag
    As you can see from the first 2 lines of the of each definition, I must give it a name (which is then shown in BasicHome) and the reference to the plugin (2nd line).
    Can't you get that from the MultiShortcut.xml that is generated in Program Data\Team Media Portal\Media Portal after the setup of the shortcuts in MP Config, it does contain the names and details of the programs etc.
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,070
    1,279
    Southampton
    United Kingdom United Kingdom
    Country flag
    however doing the same for #HOME17.name:MultiShortcut00 did not result in a 2nd shortcut.
    This may be because according to @catavolt 's sample code, for #HOME17 the string should be MultiShortcut01, not ...00. It looks like there is a typo somewhere, but I don't know where (in the code that you tried, or in your post above).

    -- from CyberSimian in the UK
     

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    1,667
    1,253
    Germany Germany
    Country flag
    This may be because according to @catavolt 's sample code, for #HOME17 the string should be MultiShortcut01, not ...00. It looks like there is a typo somewhere, but I don't know where (in the code that you tried, or in your post above).
    That was merely a typo on the post not on the edit of the code.;)
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,961
    9,307
    Lanzarote
    Germany Germany
    Country flag
    To work in BasicHome Editor, you must use different named dlls, e.g. for your 1st shortcut Multishortcut00.dll, for your 2nd Multishortcut01.dll etc.
    Now you can edit the names in BHED as follows (following your example):
    <define property="true" evaluateNow="true">#HOME16.name:BBC1</define>
    <define property="true" evaluateNow="true">#HOME16.plugin:MultiShortcut00</define>
    blablabla
    <define property="true" evaluateNow="true">#HOME17.name:BBC2</define>
    <define property="true" evaluateNow="true">#HOME17.plugin:MultiShortcut01</define>
    blablabla

    Then it should work ;)
    BTW: I couldn´t find out the property for the name you give the shortcut - "caption" or "#caption" or combinations like "#Multishortcut00.caption" does not work.
    @framug: What is the property for the caption (name of the shprtcut) in MP???
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    12,961
    9,307
    Lanzarote
    Germany Germany
    Country flag
    Well, obviously you didn´t understand my question: To reference it in BASIC HOME (not in Classic Home), I need the name of the property for the button name, e.g #button.name or something you gave it in the program to show in Classic Home ;)
    If you didn´t, then you should rework the plugin a bit to be used MP wide ;)
     

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

    OP Similar threads Forum Replies Date
    morpheus_xx [WiP] "What's New" plugin for MP2 upgrades MediaPortal 2 16
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    M Installing Plugins Newcomers Forum 2
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    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
    Similar threads

























    Top Bottom