Reply to thread

After reading the post from hioctane, it occurred to me that you guys are maybe suffering from the same loss of focus that my MP has every time I start it. In my case this is caused by an option in the MiniDisplay plugin (restart driver) that I need to get my IR sensor working and "seeing" input from the remote control. I have put a crude workaround in place, which would explain why I haven't seen the "loss of mappings" described by some people in this thread, assuming that what really happened in all those cases was that MP lost focus.

So if any you have a problem with MP losing focus, here's my workaround for that issue: I wrote a very small script for a freeware tool called "autohotkey". The script can be compiled into an executable and autostarts on my MediaPC. It then checks every second if there is an open window that has "MediaPortal -" as the beginning of the window title, and if such a window is found it makes that window active, basically bringing focus back to MP.

This is what the script looks like:

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

SetTitleMatchMode, 2


Loop

{

   IfWinExist MediaPortal -

   {

      IfWinNotActive

      {

         WinActivate

      }

   }

   sleep, 1000

}

return

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


The tool can be found at: AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText


Top Bottom