Media Center focus on startup


  1. Posts : 2
    Windows 7
       #1

    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 Computer


  2. Posts : 17
    Win 7
       #2

    jmenoud said:
    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 Computer


  3. Posts : 2
    Windows 7
    Thread Starter
       #3

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 15:27.
Find Us