If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Launch app/script/shortcut from Plex (openPHT) home menu

kinema_KLEINkinema_KLEIN Posts: 18Members, Plex Pass Plex Pass

Is there any method for adding another 'Section' to the Plex home menu that would launch a custom script or application? Sections as in Channels, Shared Content, Watch Later, etc on the home menu like this: https://i.imgur.com/9dkOiuP.jpg

Currently running OpenPHT on a MacMini, same machine as plex server.
Use case is to have a section, or shortcut, like 'GAMES' to launch script closing PHT and launching Steam Big Picture (or any action defined in script)..

There is a related setting called:"'Play File' on homemenu" -- that allows manually defining an additional menu item for playing a particular movie/show (i think), but that looks to be tied to video file formats only.

Answers

  • TonioRoffoTonioRoffo Posts: 200Members, Plex Pass Plex Pass

    I like this, it would open up a lot of possibilities for customisation.

  • swordsandtequilaswordsandtequila Posts: 341Members, Plex Pass Plex Pass

    Not sure about Plex, but flirc and your remote would do the job.

    2009 Nehalem Mac Pro, 2.66 GHz / 24GB ram
    120GB Mercury Accelsior_E2 PCI Express SSD / CalDigit FASTA-6GU3 esata/usb3
    ASUS GeForce GTX 650 2GB
    6-4TB Hitachi Deskstar Coolspin HDs [16TB RaidZ2 - OpenZFS]

  • HeciruamHeciruam Posts: 161Members, Plex Pass Plex Pass

    Since it will never be on PMP I would really like to know if there is a chance for this to be implemented in openPHT.

    I currently boot into Steam and go to PLEX or my other game launcher(Launchbox) from there. I would like to have it the other way around because I mostly watch movies.

  • bkurybkury Posts: 393Members ✭✭✭
    edited September 2016

    You can already do that with OpenPHT, it's just not implemented in a "user/gui friendly" way right now ... here is an example how to do it manually with the default skin :

    • Edit "skin.plex/720p/HomeMenu.xml" and look for this code :
    <item id="121">
       <description>Play File</description>
       <label>$LOCALIZE[32205]</label>
       ... more code ...
    </item>
    

    now add the following new item after the Play File item like this :

    <item id="121">
       <description>Play File</description>
       <label>$LOCALIZE[32205]</label>
       ... more code ...
    </item>
    
    <item>
       <label>My Program Name</label>
       <onclick>System.Exec(c:\mypath\myprogram.exe)</onclick>
    </item>
    

    OSX/Linux users should change the path accordingly!

    edit: You can also use "System.Exec()" in keymaps file, e.g. press key "X" to open an application ...

    Save your changes and restart OpenPHT ...
    You should now have a new home menu item "My Program Name" which executes "C:\mypath\myprogram.exe" on click ...

    Night Skin v1.8.6  |  Support Thread  |  Github

    OpenWeatherMap Channel  |  Github

    OpenPHT  |  Github  |  Development Builds

    Please consider to support my work, thank you!

    btn_donate_SMgif

  • HeciruamHeciruam Posts: 161Members, Plex Pass Plex Pass

    Thats exactly what I was looking for!

    Thanks!!!!

  • tooviraltooviral Posts: 5Members, Plex Pass Plex Pass

    Anyway to do this with aeon nox?

    all-banner.jpg

  • MagnumDoomguyMagnumDoomguy Posts: 487Members, Plex Pass Plex Pass

    Aeon Nox 5 Skin for OpenPHT

    Like Aeon Nox 5 and want to donate some money to help support development? Click here to donate.

  • _ToXIc__ToXIc_ Posts: 35Members, Plex Pass Plex Pass

    this is pretty kewl.. what custom scripts are you guys running?

  • AaronG85AaronG85 Posts: 73Members, Plex Pass Plex Pass

    Can you use this to launch programs?

Sign In or Register to comment.