Jump to content

HOW-TO Disc Playback w/MBT Shelled via Event Ghost


A8HTPC

Recommended Posts

UPDATED: 2-13-14

I updated the configuration I am using...again. I was getting random missed events with the original configuration and now its working much better. Not perfect, but much better. You should be able to use this for any media player you use. You just need to point the entries which say "EDIT" to the program of your choosing. 

 

I found out the reason for not being able to capture the focus of the program. There is a plugin called "Task Create/Switch Events". This will help determine when an application has been brought to front, closed or minimized. The catch is that you need explorer to be running in order to capture "Task" events. So I am stuck capturing process events which has been a bit more tricky to get to work right.

 

--  If anyone knows about creating python scripts and would like to create a script to make EventGhost better at this whole convoluted process, then be my guest and let us know what you come up with :)  --

 

Changes 2-13-14

1. Pre-Starts 'media program' (PowerDVD, JRiver, Total Media Theater, etc..) at initial boot then after 20 seconds, the 'media program' is minimized, sent to the back and Media Browser is brought into focus. Reason I changed it to 20 seconds is during a cold boot, it takes time for the media program to be loaded, and the process I capture is created before the program shows up so adding the extra time makes EventGhost wait till the next step in the process.

2. Added a "Left Mouse Click" to certain areas. I had issues with PowerDVD loosing focus after it loaded, even though it was on top and maximized. Probably due to more processes being created. So this left click was the only way I found so far to get it back into focus. Maybe I should have EG wait 30 seconds or so to pre-load the media program to keep it in focus.

3. Cleaned up Event Tree

 

Notice

- This IS NOT meant to be a plug and play setup but with a few tweaks you should be able to get it to work. This is meant to put you on the right path for a working Work-Around. 

- You will need to capture the proper events specific to the program you are using. Example, Process.Destroyed.PDVDLP is actually telling me that PDVD has been sent to the rear or closed. The PDVDLP portion is PDVDLP.EXE so you will need to start up your media program, then minimize it and watch for the specific events on the left hand side column in Event Ghost which will give you realtime list of all events its monitoring. I can try and help you out if needed.

 

----------------------------------------------------

Updated Original Post:

Soon to be a completed HOW TO. In my quest to make this work "for now" untill MBT becomes beta or further and plugins are offered, I continued to find a way to get automatic disc playback when MBT is used as windows shell (not explorer). When Explorer.exe is closed or not used, Windows looses all the AutoPlay functions we use. 

 

Instant Sheller is what I used to make MBT Windows Shell
MBT Program Path (C:\Users\*UserAccount*\AppData\Roaming\MediaBrowser-Theater\System\MediaBrowser.UI.exe)

 

Download Event Ghost

Download EventGhost Tree XML (As a template) (Updated 2-13-14)

 

When loading Event Ghost, go to "FILE" and "OPEN" then browse to EventGhost Tree.xml. 

 

I ended up capturing the system event...."System.DriveMounted.E" and "System.DriveRemoved.E" to auto start PowerDVD13 and play the disc and close PowerDVD13 when ejecting the disc. The. ".E" is the drive letter. Though I have yet to capture the correct even to get PowerDVD to close when I press the STOP button. I need to conversate with the folks at EG some more to see if someone can write a script with that.

 

A picture of the event tree. This is setup for PowerDVD13 but can easily be adjusted for another program

 

Picture Updated 2-13-14

52fd63c3c4ac4_egtree.png

Edited by A8HTPC
  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...