Call MovingPictures with remote button? (1 Viewer)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    Yes this is possible to do. You can set up the videos remote button to cycle between tvseries and moving pictures.

    I have a similar setup for my music. If i press my music then i go into my music plugin, if i'm already in my music then it goes into the now playing screen, if I'm in now playing then I go back to My Music.

    <button name="My Music" code="71">
    <action layer="0" condition="WINDOW" conproperty="504" command="WINDOW" cmdproperty="510" sound="click.wav" />
    <action layer="0" condition="*" conproperty="-1" command="WINDOW" cmdproperty="504" sound="click.wav" />
    </button>

    I'm guessing what you want should look like this:

    <button name="My Videos" code="74">
    <action layer="0" condition="WINDOW" conproperty="9811" command="WINDOW" cmdproperty="96742" sound="click.wav" />
    <action layer="0" condition="*" conproperty="-1" command="WINDOW" cmdproperty="9811" sound="click.wav" />
    </button>

    Explanation

    If current window = 9811 (My TV Series), then jump to window 96742 (Moving Pictures), otherwise jump to window 9811 (My TV Series)

    _____________________________________________________________

    EDIT: I see you want to cycle between My Videos -> TV Series -> Moving Pictures

    Try the following (I assume My Videos window ID = 6, I didn't actually check this)

    <button name="My Videos" code="74">
    <action layer="0" condition="WINDOW" conproperty="6" command="WINDOW" cmdproperty="9811" sound="click.wav" />
    <action layer="0" condition="WINDOW" conproperty="9811" command="WINDOW" cmdproperty="96742" sound="click.wav" />
    <action layer="0" condition="*" conproperty="-1" command="WINDOW" cmdproperty="6" sound="click.wav" />
    </button>
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Hey, thanks.

    I tried to go Videos - MovingPictures but that wasn't even working, but I must have had something wrong as it's working now after I read your post and tried again. In fact, it's cycling properly between Videos - MovingPictures - TVSeries repeatedly :)

    Here's what I've got now:

    <button name="Videos" code="2024">
    <action layer="0" condition="WINDOW" conproperty="6" command="WINDOW" cmdproperty="9811" sound="click.wav" />
    <action layer="0" condition="WINDOW" conproperty="9811" command="WINDOW" cmdproperty="96742" sound="click.wav" />
    <action layer="0" condition="*" conproperty="-1" command="WINDOW" cmdproperty="6" sound="click.wav" />
    <action layer="0" condition="WINDOW" conproperty="2005" command="ACTION" cmdproperty="18" sound="click.wav" />
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    the last line for fullscreen video (2005) wont do anything as the command will terminate at the 3rd line.


    so just delete the 4th line.

    or change it to

    <button name="Videos" code="2024">
    <action layer="0" condition="WINDOW" conproperty="6" command="WINDOW" cmdproperty="9811" sound="click.wav" />
    <action layer="0" condition="WINDOW" conproperty="9811" command="WINDOW" cmdproperty="96742" sound="click.wav" />
    <action layer="0" condition="WINDOW" conproperty="2005" command="ACTION" cmdproperty="18" sound="click.wav" />
    <action layer="0" condition="*" conproperty="-1" command="WINDOW" cmdproperty="6" sound="click.wav" />
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Thanks, I think that (2005) is the ShowGUI command but I can use my Info button for that instead, so I'll just remove it.

    More importantly, I just looked and the whole file's disappeared! There's nothing in the InputDeviceMappings folder!!

    I certainly didn't delete it and it's not in the recycle bin, so looks like I'm going to have to start all over again using the default Hauppauge HCW.xml from the Program Files folder :mad:
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Thanks for clearing that up.

    I can only assume that going to remote config in MP config after manually editing the .xml causes it to get deleted.

    I've now gone back and changed one mapping and it's been re-created again, after which I've put the edits back in manually. Just need to avoid going to config again.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    ahh previously if you manually edited the xml file and then tried to edit in mp config, it would make mp config crash. At least it did for microsoftmce.xml
     

    mbb

    Portal Pro
    November 20, 2004
    374
    15
    Home Country
    France France
    I used this trick for a while, but it doesnt work in MP 1.2beta anymore !!!


    my Microsoft MCE.xml file customization :
    Code:
    <button code="74" name="My Videos"> 
      <action sound="click.wav" cmdproperty="18" command="ACTION" conproperty="6" condition="WINDOW" layer="0"/> 
      <action sound="click.wav" cmdproperty="18" command="ACTION" conproperty="2005" condition="WINDOW" layer="0"/> 
      <action sound="click.wav" cmdproperty="9811" command="WINDOW" conproperty="-1" condition="*" layer="0"/> 
    </button>
    <button code="80" name="My Radio"> 
      <action sound="click.wav" cmdproperty="96742" command="WINDOW" conproperty="-1" condition="*" layer="0"/> 
    </button>

    my log :
    Code:
    2011-05-03 16:30:37.433920 [Info.][MPMain(1)]: MCE: Initializing MCE remote
    2011-05-03 16:30:37.445921 [Info.][MPMain(1)]: MCE: Found: \\?\hid#irdevicev2&col01#2&2818a073&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    2011-05-03 16:30:37.448921 [Info.][MPMain(1)]: MCE: Using: \\?\hid#irdevicev2&col01#2&2818a073&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    2011-05-03 16:30:37.455922 [Info.][MPMain(1)]: MAP: using custom mappings for Microsoft MCE
    2011-05-03 16:30:37.461922 [Info.][MPMain(1)]: MCE: MCE remote enabled
    
    2011-05-03 16:30:46.383432 [Info.][(19)]: MCE: Incoming button command: MyRadio
    2011-05-03 16:30:46.392433 [Info.][(19)]: MCE: Command "MyRadio" mapped
    2011-05-03 16:30:46.703451 [Debug][MPMain(1)]: Window: WindowPlugins.home.GUIBasicHome deinit
    2011-05-03 16:30:46.714451 [Debug][MPMain(1)]: TextureManager: CleanupThumbs()
    2011-05-03 16:30:46.743453 [Warn.][MPMain(1)]: GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Black Glass Nova HD\4TR_RadioHome.xml' is missing control id 9 (window property: _teletextButton)
    2011-05-03 16:30:46.745453 [Warn.][MPMain(1)]: GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Black Glass Nova HD\4TR_RadioHome.xml' is missing control id 420 (window property: _settingsLabel)
    2011-05-03 16:30:46.858459 [Debug][MPMain(1)]: Window: ForTheRecord.UI.MediaPortal.RadioHome init
    2011-05-03 16:30:49.139590 [Info.][(19)]: MCE: Incoming button command: MyVideos
    2011-05-03 16:30:49.144590 [Info.][(19)]: MCE: Command "MyVideos" mapped
    2011-05-03 16:30:49.428606 [Debug][MPMain(1)]: Window: ForTheRecord.UI.MediaPortal.RadioHome deinit
    2011-05-03 16:30:49.434607 [Debug][MPMain(1)]: TextureManager: CleanupThumbs()
    2011-05-03 16:30:49.464608 [Warn.][MPMain(1)]: GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Black Glass Nova HD\myVideo.xml' is missing control id 8 (window property: btnTrailers)
    2011-05-03 16:30:49.490610 [Debug][MPMain(1)]: Window: MediaPortal.GUI.Video.GUIVideoFiles init
    2011-05-03 16:30:49.495610 [Warn.][MPMain(1)]: GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Black Glass Nova HD\videoOverlay.xml' is missing control id 6 (window property: _labelBigPlayTime)
    2011-05-03 16:30:49.499610 [Warn.][MPMain(1)]: GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Black Glass Nova HD\videoOverlay.xml' is missing control id 6 (window property: _labelBigPlayTime)
    I did the same test with defaul skin with the same result

    Is somebody have the same problem ?
    Is it my installation or a bug ? :(
     

    Meier

    Portal Pro
    November 1, 2006
    242
    30
    Home Country
    Germany Germany
    AW: Call MovingPictures with remote button?

    I didn't check your xml - but i changed my ms mce.xml also - and it's still working without any problems in 1.2 Beta.
     

    mbb

    Portal Pro
    November 20, 2004
    374
    15
    Home Country
    France France
    I finaly found the problem.

    The modified file has to be in ProgramData instead of Program Files.
     

    Users who are viewing this thread

    Top Bottom