Page 4 of 4
Re: Windows Media Center (MCE) - Beta
Posted: Fri Jul 08, 2011 6:15 pm
by itauditor
That did it ! Fantastic!
thanks a bunch
Re: Windows Media Center (MCE) - Beta
Posted: Fri Jan 06, 2012 12:10 am
by lappen
Hi
Im' trying to use the start or home event/action but they won't work unless mce is started. I thought they were used to start MCE? If not any suggestions on how to start MCE through eventghost?
See log in scrshot
Uploaded with
ImageShack.us
Re: Windows Media Center (MCE) - Beta
Posted: Thu Apr 19, 2012 11:58 pm
by roleyrev
Hi Check out:
http://windows.microsoft.com/en-US/wind ... -shortcuts
Use the EG window control macro to emulate the key sequience to start MCE:
Windows Key+ALT+ENTER
that should do the trick
Cheers
John
Re: Windows Media Center (MCE) - Beta
Posted: Fri Apr 20, 2012 1:11 am
by Livin
simple... All you need to do is launch C:\Windows\ehome\ehshell.exe
there are all sort of command line options too...
http://msdn.microsoft.com/en-us/library ... 89052.aspx
I always skip the animation and go directly to the either Recorded Shows or TV Guide depending on what remote button I press. Very useful!
Re: Windows Media Center (MCE) - Beta
Posted: Wed Apr 25, 2012 6:49 pm
by barnabas1969
After installing the MCE Remote plugin for Vista/7 (
see here), and the associated background service, I found it easier to just add the HID registry keys back into the registry. This makes the remote control send commands to Media Center just like it did before I installed EG... plus, EG gets the events from the button presses so I can trigger macros. Adding the HID registry keys back into the registry makes the plugin being discussed in this thread unnecessary.
In other words, when you add the HID registry keys back into the registry, the EG plugin for MCE Remote (Vista/7) no longer prevents those IR commands from being sent to Media Center.
The reason I wanted to use the MCE remote plugin for Vista/7 was so that I could use the MCE IR dongle to detect key presses from any remote, not just the MCE remote. For example, I can program my remote to send an IR code from a component that I don't even own and then use that IR code in EG to trigger a macro. I have buttons defined on my remote's touch-screen that go directly to Netflix, Hulu, MCE Sleep Timer, etc. There are no keyboard shortcuts for these in Media Center. What I did was I used a "PC Remote" (not the MCE remote) commands for F1, F2, F3, etc. Media Center ignores these commands... but EG sees them and runs the command-line for ehome.exe to navigate directly to Netflix, runs the HuluWatcher.exe for Hulu, and stuff like that.
Doing it my way (adding the HID registry keys back into the registry) also gives me back the fast-scroll feature in Media Center. For example, if you use this MCE plugin to send the keyboard key <Right-Arrow> to Media Center, even if you have it set to repeat the button... Media Center will never fast-scroll through the guide. This is because Media Center needs to detect that you are holding down the button in order to start fast-scroll.
Re: Windows Media Center (MCE) - Beta
Posted: Thu Jul 19, 2012 9:35 am
by Misugi
To fix the problem of the action "MCE: Start", personally I have just modify the code in the file "plugins\MCE\__init__.py" as bellow :
Code: Select all
def __call__(self):
if self.value > '{Win+':
eg.SendKeys(None, self.value, False)
else:
hwnds = FindMCE()
if len(hwnds) != 0:
eg.SendKeys(hwnds[0], self.value, False)
else:
self.PrintError("MCE is not running")
return
Re: Windows Media Center (MCE) - Beta
Posted: Wed Jul 25, 2012 6:01 pm
by muzicman0
barnabas1969 wrote:After installing the MCE Remote plugin for Vista/7 (
see here), and the associated background service, I found it easier to just add the HID registry keys back into the registry. This makes the remote control send commands to Media Center just like it did before I installed EG... plus, EG gets the events from the button presses so I can trigger macros. Adding the HID registry keys back into the registry makes the plugin being discussed in this thread unnecessary.
In other words, when you add the HID registry keys back into the registry, the EG plugin for MCE Remote (Vista/7) no longer prevents those IR commands from being sent to Media Center.
The reason I wanted to use the MCE remote plugin for Vista/7 was so that I could use the MCE IR dongle to detect key presses from any remote, not just the MCE remote. For example, I can program my remote to send an IR code from a component that I don't even own and then use that IR code in EG to trigger a macro. I have buttons defined on my remote's touch-screen that go directly to Netflix, Hulu, MCE Sleep Timer, etc. There are no keyboard shortcuts for these in Media Center. What I did was I used a "PC Remote" (not the MCE remote) commands for F1, F2, F3, etc. Media Center ignores these commands... but EG sees them and runs the command-line for ehome.exe to navigate directly to Netflix, runs the HuluWatcher.exe for Hulu, and stuff like that.
Doing it my way (adding the HID registry keys back into the registry) also gives me back the fast-scroll feature in Media Center. For example, if you use this MCE plugin to send the keyboard key <Right-Arrow> to Media Center, even if you have it set to repeat the button... Media Center will never fast-scroll through the guide. This is because Media Center needs to detect that you are holding down the button in order to start fast-scroll.
How do you add the HID registry keys back? I think this will resolve the issues I'm having...
Re: Windows Media Center (MCE) - Beta
Posted: Fri Jul 27, 2012 8:05 pm
by barnabas1969
@muzicman0: Download the attached text file. Rename it to change the file extension to .reg, and double-click it.
Re: Windows Media Center (MCE) - Beta
Posted: Fri Jul 27, 2012 8:21 pm
by muzicman0
barnabas1969: Thanks!
Just to be sure though, this will work on any MCE remote? Just want to make sure it's not brand specific...
mm0
Re: Windows Media Center (MCE) - Beta
Posted: Fri Jul 27, 2012 8:39 pm
by barnabas1969
Yes, any MCE remote.
Re: Windows Media Center (MCE) - Beta
Posted: Sun Dec 01, 2013 9:36 am
by steve1977
Digging out a very old thread, but hope that the developer is still around?!
My problem is that the plugin checks whethe MCE is running and otherwise does not pass on the keyclick. Is there any way tp disable the "MCE-check"?
Context is that I am running Mediabrowser3 on Win7x64. Mediabrowser uses the MCE keymap. Please note that I am not using the MCE remote, but need this plugin for the MCE keymap.
Thanks!!!
Re: Windows Media Center (MCE) - Beta
Posted: Sun Dec 01, 2013 7:19 pm
by arjanm
steve1977 wrote:My problem is that the plugin checks whethe MCE is running and otherwise does not pass on the keyclick. Is there any way tp disable the "MCE-check"?
Context is that I am running Mediabrowser3 on Win7x64. Mediabrowser uses the MCE keymap. Please note that I am not using the MCE remote, but need this plugin for the MCE keymap.
I'm not the developer of this plugin, but I will try to help you,
This is a part of the original code:
Code: Select all
FindMCE = eg.WindowMatcher(u'ehshell.exe', u'Windows Media Center', None, None, None, 1, False, 0.0, 0)
class hotKeys(eg.ActionClass):
def __call__(self):
hwnds = FindMCE()
if len(hwnds) != 0:
eg.SendKeys(hwnds[0], self.value, False)
else:
self.PrintError("MCE is not running")
return
The plugin uses EventGhost to find the window of MCE.
You can edit the code and use a new variable to be checked:
Code: Select all
FindMediabrowser3 = eg.WindowMatcher(u'mediabrowser3process.exe', u'Media Browser 3 Windows Title', None, None, None, 1, False, 0.0, 0)
class hotKeys(eg.ActionClass):
def __call__(self):
hwnds = FindMediabrowser3()
if len(hwnds) != 0:
eg.SendKeys(hwnds[0], self.value, False)
else:
self.PrintError("Mediabrowser3 is not running")
return
To edit the plugin, remove the plugin from EG, find the plugin folder, delete the _init_ .pyc, edit the _init_.py and import the plugin in EG.
I did not test these code adjustments, use at your own risk.
Re: Windows Media Center (MCE) - Beta
Posted: Sat Dec 07, 2013 3:26 am
by steve1977
Unfortunately, this does not work. When installing the revised plugin, I am getting the following error message:
Traceback (most recent call last) (1640):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 153, in CreateInstance
plugin.__init__()
File "C:\Program Files (x86)\EventGhost\plugins\MCE\__init__.py", line 124, in __init__
self.windowMatch = FindMCE
NameError: global name 'FindMCE' is not defined
Re: Windows Media Center (MCE) - Beta
Posted: Sun Dec 08, 2013 11:37 am
by arjanm
steve1977 wrote:Unfortunately, this does not work. When installing the revised plugin, I am getting the following error message:
Traceback (most recent call last) (1640):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 153, in CreateInstance
plugin.__init__()
File "C:\Program Files (x86)\EventGhost\plugins\MCE\__init__.py", line 124, in __init__
self.windowMatch = FindMCE
NameError: global name 'FindMCE' is not defined
The line "self.windowMatch = FindMCE" should be replaced by "self.windowMatch = FindMediabrowser3".