Green Button do not restore MP1 anymore (1 Viewer)

brain1000

Portal Member
November 25, 2012
15
2
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:

joEhSuper

MP Donator
  • Premium Supporter
  • June 2, 2011
    1,012
    589
    Home Country
    Austria Austria
    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:)
     

    brain1000

    Portal Member
    November 25, 2012
    15
    2
    Home Country
    Great Britain (UK) Great Britain (UK)
    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 :-(
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,873
    1,801
    Southampton
    Home Country
    United Kingdom United Kingdom
    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
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    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.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    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.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    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

    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem - unable to connect to any of the specified MySQL hosts. And Hostname is still in red. I don't understand - this is a dedicated TV computer. Unless an update did this I don't know why there's a problem in the...
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem -...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    2
    Views
    431
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP and set logs and rebooted and ran TVServer. Didn't do anything in regard to S Loopback adapter. I've been using NextPvr since the problem became insurmountable. Only reason it's not a good long term...
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    24
    Views
    2K
    It works perfect now. All channels have been found, even with the default tuning files. Thank you very much! (y) I'd love seing this change in MP 1.33! :)
    It works perfect now. All channels have been found, even with the default tuning files. Thank you very much! (y) I'd love seing...
    With my new hardware, Windows 11 and MP 1.32 the TV channel scan is not working anymore. The frequencies are scanned but no...
    Replies
    40
    Views
    3K
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live stream from server to MP. If anyone has a similar problem - disable all old plugins and then enable one after another :-)
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live...
    After using MP for more than 10 years with regularly updates - this is the first time that after an update MP is not working...
    Replies
    3
    Views
    1K
    • Sticky
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    971
    Top Bottom