INTERACT FORUM

More => Old Versions => Media Center 15 (Development Ended) => Topic started by: cncb on January 30, 2011, 10:49:43 am

Title: Launch Theater View with Green Button when MC is closed?
Post by: cncb on January 30, 2011, 10:49:43 am
Is there any way to do this without an external program like Eventghost?  I tried to achieve this by starting JRService manually and keeping it running but MC is not launched when pressing the button (and the service is killed anyways when MC is closed).  I know I can run "Media Server" but don't think this would be a good idea on client machines (seems like they should "reconnect" to the server each time after awoken from sleep, etc.).
Title: Re: Launch Theater View with Green Button when MC is closed?
Post by: JimH on January 30, 2011, 10:50:53 am
I think Media Server would still work.  Have you tried?
Title: Re: Launch Theater View with Green Button when MC is closed?
Post by: cncb on January 30, 2011, 11:03:21 am
Media Server on the clients would work but I would prefer to close MC completely before putting the PC to sleep to make sure all changes are synced properly, etc.
Title: Re: Launch Theater View with Green Button when MC is closed?
Post by: petrossa on January 30, 2011, 12:51:20 pm
You could write your own prog to capture the event and start MC with a commandline switch.
Title: Re: Launch Theater View with Green Button when MC is closed?
Post by: cncb on February 01, 2011, 09:57:50 am
You could write your own prog to capture the event and start MC with a commandline switch.

I could, but in that case I might as well just use Eventghost for everything including controlling MC rather than just having a separate program running to handle just one special case.
Title: Re: Launch Theater View with Green Button when MC is closed?
Post by: petrossa on February 02, 2011, 05:36:01 am
If you write a small eventfilter, you can just check if MC is running and if not start it, if it is, pass on the event. That way you use the same control and the same automation. Just with a tiny kludge.
Doesn't even have to be a service, just a tiny windowless app trapping the IRDAWinsock.
Connect to the device, do a int recv(SOCKET s, char FAR* buf,  int len,  int flags); with flags =MSG_PEEK ;

Easy, and way faster then waiting for JRiver to implement it.