Green Button do not restore MP1 anymore (1 Viewer)

brain1000

Portal Member
November 25, 2012
21
8
Home Country
Great Britain (UK) Great Britain (UK)
Previously when MP was minimised the Green Button would open up the MP window - it no longer does this on the HID input handler.
 
Last edited by a moderator:
In addition, previously when MP was minimised the Green Button would open up the MP window - it no longer does this on the HID input handler.
This I can not confirm - I have a Harmony Remote 700/650 - setup as MCE Remote and here the Menu = Green Button does start MP... (but don't ask me why and how :ROFLMAO:)
 
Thanks for the reply.

On my system, the Green Button (on a MS remote) starts up MP fine if it MP not running, it just will not work if MP is minimised :-(
 
In addition, previously when MP was minimised the Green Button would open up the MP window - it no longer does this on the HID input handler.
I am running MP 1.12, which has both the "Generic HID" tab and the "Microsoft MCE" tab, so I have been able to try both. I can confirm that:

(1) When using "Microsoft MCE" with MP minimised to the "Task Bar", the START button restores the MP window to its previous size. :)

(2) When using "Generic HID" with MP minimised to the "Task Bar", the START button does nothing. :(

Has this been fixed in MP 1.13? (I cannot test this at the moment.)

-- from CyberSimian in the UK
 
I checked the code and nothing has changed there so I'm not sure what could be going on.
Do know however that while starting MP will always work reliably restoring MP can fail.
That's the case now and that was the case before.
In fact on Windows an application can not manipulate other applications and send them in the foreground and background reliably without getting some special permission and signing which MP tray does not have. Often what you get is the flashing task bar entry when Windows prevented and application to manipulate foreground status.
 
I remember seeing code about MCE for green button to make it focus and restore, but i didn't remember where. I'm not sure it was on mptray, what i remember is that it was sort of key signal.
Will try to find a commit about it lol.
 
Before the code was :
C#:
private static void OnClick(object sender, RemoteEventArgs e)
{
Process[] processes = Process.GetProcessesByName("mediaportal");

      if (processes.Length != 0)
      {
        if (processes.Length > 1)
        {
          Log.Write("MPTray: More than one window named \"MediaPortal\" has been found!");
          foreach (Process procName in processes)
          {
            Log.Write("MPTray: {0} (Started: {1}, ID: {2})", procName.ProcessName,
                      procName.StartTime.ToShortTimeString(), procName.Id);
          }
        }
        Log.Write("MPTray: MediaPortal is already running - switching focus.");
        SwitchFocus();
.....
}

We have the SwitchFocus(); call :) so i think here when green button was pressed -> switchfocus.
The switch code didn't change but now we have the -> private void DoStart()

Maybe :
public void HandleHidEvent(object aSender, SharpLib.Hid.Event aHidEvent) need to be reworked ?

This was not here before, so if i understand if MP is in tray, it will be focused.
C#:
if (aHidEvent.IsStray)
      {
        //Stray event just ignore it
        return;
      }
 

Users who are viewing this thread

Similar threads

Hello everyone. This isn't directly related to the issue discussed, but I noticed some people were looking for a recording splitter, and I'd personally recommend TSDoctor: Cypheros TS-Doctor Video Editor and Konverter It's commercial software but there is a trial option. It can do pretty much every thing you can imagine with TS files...
Hello everyone. This isn't directly related to the issue discussed, but I noticed some people were looking for a recording...
Hi, I've been using MP1 for many years but am new to the forum. When watching recorded TV shows with subtitles, normally they are...
Replies
40
Views
5K
As noted in the title, I disabled the Fanart progress widget some time back, it's the one that shows on the home screen when you turn MP on. I've decided that I'd like to have it back now but I could not find where I disabled it. Anyone know where it would be? I had thought it was a feature in StreamedMP but no luck there either.
As noted in the title, I disabled the Fanart progress widget some time back, it's the one that shows on the home screen when you...
As noted in the title, I disabled the Fanart progress widget some time back, it's the one that shows on the home screen when you...
Replies
0
Views
470
  • Sticky
Yes, it's there ! wmp.dll isn't there, as expected.
Yes, it's there ! wmp.dll isn't there, as expected.
We have just released MediaPortal 1.39 - Endurance x86 and x64 version. Highlights of this release Bugfixes: [MP1-5257] - Skin...
Replies
23
Views
4K
MP1 MP2 1.39 x86 1.39 won't install DE
That did it, thanks.
That did it, thanks.
Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
Replies
2
Views
856
If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request. This will be transparent and straightforward.
If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team...
I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions. Please can...
Replies
7
Views
2K
Back
Top Bottom