Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Media Center focus on startup

18 Feb 2010   #1
jmenoud

Windows 7
 
 
Media Center focus on startup

Hello

I just build my brand new HTPC and setup Media Center to be launched at startup so I can use only my remote control to use it.

The problem is that the Media Center application lose the focus on startup which causes the mouse to be shown. So I am not hable to control it with my remote. To make it run, I have to connect a keyboard, close the Media Center and run it again. After everything goes fine (focus on it, can use it with remote).

I already tried a lot of configuration to make this work including:
- set configuration in media center to start it at startup (with various "/" option in the shortcut)
- add it in the "Startup" folder (with various "/" option in the shortcut)
- reduce the amount of starting application which could gain the focus


without any success. Does anybody of you found a solution? Is there not a way to say to windows "keep the focus on the application whatever appen"?

Thanks in advance


My System SpecsSystem Spec
.
18 Feb 2010   #2
pwhooftman

Win 7
 
 

Quote   Quote: Originally Posted by jmenoud View Post
Hello

I just build my brand new HTPC and setup Media Center to be launched at startup so I can use only my remote control to use it.

The problem is that the Media Center application lose the focus on startup which causes the mouse to be shown. So I am not hable to control it with my remote. To make it run, I have to connect a keyboard, close the Media Center and run it again. After everything goes fine (focus on it, can use it with remote).

I already tried a lot of configuration to make this work including:
- set configuration in media center to start it at startup (with various "/" option in the shortcut)
- add it in the "Startup" folder (with various "/" option in the shortcut)
- reduce the amount of starting application which could gain the focus


without any success. Does anybody of you found a solution? Is there not a way to say to windows "keep the focus on the application whatever appen"?

Thanks in advance
If you put this code in a .vbs file, ie Mcefocus.vbs, and put that in your startup folder, it should activate the MCE window (haven't tested, make sure window title matches). If the script is too fast (mce window is not started yet when the script runs, insert WScript.Sleep xxxx command before WshShell.AppActivate, where xxxx is the desired pause in miliseconds.

Code:
<package>
   <job id="vbs">
      <script language="VBScript">
         set WshShell = WScript.CreateObject("WScript.Shell")
         WshShell.AppActivate "Windows Media Center"
      </script>
   </job>
</package>
My System SpecsSystem Spec
03 Mar 2010   #3
jmenoud

Windows 7
 
 

Thanks for your answer.

I tested the script, after my tests, it seems that this solution is not working 100% of the time (even with high value for the sleep command).

Still looking for a better solution...
My System SpecsSystem Spec
.

Reply

 Media Center focus on startup




Thread Tools




Similar help and support threads
Thread Forum
Windows Media Player holding focus
Hi My WMP 12 has started holding focus for some reason. If I try and bring another window to the front WMP steals it back, also I cannot minimise it from the taskbar, only from the minimise button. The problem started last night, no changes to my system that I am aware of, it has not...
Music, Pictures & Video
Auto startup program not in focus
Hello new to the forums and i was hoping to get some help from you gurus with this program not being in focus when starting up. I have a few computers here that all run this program that auto launches through the startup folder. this program is suppose to launch at full screen. However, on a...
Software
Media Center Startup without Desktop Display
When I turn on my HTPC it displays the Windows 7 Desktop for a bit before being able to open Media Center. Is there a way to have Windows 7 not display the Desktop if it knows Media Center will be opening thereafter?
Media Center
Media Center - Open with No Startup Animation - Create Shortcut
How to Create a Shortcut to Open Windows Media Center with No Startup Animation This tutorial will show you how to download or create a shortcut that will open Windows Media Center with no startup animation or sound. Windows Media Center is not available in Windows 7 Starter and Windows 7...
Tutorials
Xbox 360 / Windows 7 / Media Center Extender - media sharing not worki
As I'm clicking "Play To - Xbox Media Center Extender" on my Windows 7 Laptop, I'm getting an error message of my Xbox 360/TV screen that says... "Windows Media Center cannot find the specified file. Be sure the path is typed correctly. If it is, the file does not exist at the specified ...
Media Center
XBOX media center won't connect to windows 7 media center computer
Hi, I've been looking through all these threads regarding this issue and I can't figure it out. For some reason I have an older desktop running XP MCE and without trying to configure anything it automatically sees the XBOX on the network. I'm not interested in running it through that computer...
Media Center


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:54.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App