Starting MediaPortal GUI with a Remote/Keyboard (1 Viewer)

usualsuspect

Portal Pro
May 12, 2009
631
98
Home Country
Germany Germany
AW: Starting MediaPortal GUI with a Remote/Keyboard

as hard as I try, I am not able to start a second session. mepo is just minimized to tray, maximized and so on using alt-f4 and alt-shift-1,tested up to 10 times...

actually I have no clue, why yours is not.

edit: potentially relevant settings:
X start fullscreen
X use alternative splash screen
0 Mepo allways on top
0 Hide Taskbar
X min to tray on start uo
X min to tray on exit
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
That's really strange. I've tested on three setups now. It's the same thing.

If I run live-TV, and Alt+F4, then start with a desktop-shortcut, Live-TV is paused, and sound is gone.
If I then close again with Alt+F4, and click the tray icon to open GUI, it's all good!

I'm running 1.2 beta on all systems...

Anyone else who can try to recreate my problem?

I'm starting in fullscreen. I'm not using alternative splash.

I'll try that now.

Edit: no difference. Live-TV is still paused on resume

as hard as I try, I am not able to start a second session. mepo is just minimized to tray, maximized and so on using alt-f4 and alt-shift-1,tested up to 10 times...

actually I have no clue, why yours is not.

edit: potentially relevant settings:
X start fullscreen
X use alternative splash screen
0 Mepo allways on top
0 Hide Taskbar
X min to tray on start uo
X min to tray on exit

So your Live-TV continues where you left off? Nothing is stopped, paused etc?
 

usualsuspect

Portal Pro
May 12, 2009
631
98
Home Country
Germany Germany
AW: Starting MediaPortal GUI with a Remote/Keyboard

ok, maybe i did not understand you totally right. i had not checked live-tv but only tried to see the "second" instance of mp.

just now tried with the second machine and live-tv and i can reproduce your problem. paused live tv and no sound after "resume", but all in a single instance of mepo.

but I do not think it is possible to resume to live tv, it even is not possible to change window size from normal to maximal without interrupting running live tv. I remember a thread where someone mentioned that this is not possible with mepo1.
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
It is strange!

You're not completely correct, because if you resume using the tray icon, it does actually work. Btw. I can change from/to full screen without interupting anything. The only thing I need now is a possibility to link a shortcut or script to that trays "restore" button. That's it...

But I can't find an easy way to do this.

Thanks for helping me this far!
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
I guess the only way to fix this is to make the devs. add a check when MP starts:

"If MP.exe is started; Check if the MP tray is minimized and ready to restore/exit, try to restore."

You agree?
 

MaxT

MP Donator
  • Premium Supporter
  • December 9, 2009
    112
    13
    Home Country
    Russian Federation Russian Federation
    I had absolutely the same issue + difficulties is using my remote with IRSS. So now I am using the attached AutoHotKey script to operate MP from my Philips srm7500 and Genius MediaCruiser keyboard (to use it you will need installing AutoHotKey (just google for it) and put a shortcut to the script in to the start up folder.)

    The issue with MP restore is resolved by:
    PostMessage, WM_SYSCOMMAND, 0xF120,,, ahk_pid %ErrorLevel% ;0x112 = WM_SYSCOMMAND, 0xF120 = SC_RESTORE
    PostMessage, WM_SYSCOMMAND, 0xF030,,, ahk_pid %ErrorLevel% ; 0x112 = WM_SYSCOMMAND, 0xF030 = SC_MAXIMIZE
    Run, %MP_Path%\MediaPortal.exe, %MP_Path%, UseErrorLevel
    Post Messages just restore/maximize MP, but do not bring it to front. So I am running MP anyway, but this just brings it to front.


    BR

    MaxT

    PS: install mesagges plugin to MP if want to pass commands to it
     

    Attachments

    • MediaCruiser810_SRM7500.zip
      10.6 KB

    nordemoniac

    Portal Pro
    January 20, 2010
    72
    5
    Home Country
    Norway Norway
    I see! But are you actually exiting the GUI, or is it just minimizing the GUI?
    I would like to start MP at boot, but not the GUI. That way it will be ready to start in a matter of seconds. Also when I exit, I want to close the GUI, but be able to start a new GUI on the existing MP process.

    Will this script do this? What MP should do, is to map a button (not used by windows) to their "Restore" button in the systembar. That would fix this problem. Either that, or have a check if a process is already running before starting another MP session when you start MP.
     

    MaxT

    MP Donator
  • Premium Supporter
  • December 9, 2009
    112
    13
    Home Country
    Russian Federation Russian Federation
    You can start MP at boot, minimized at start and minimized to tray at GUI exit (there are such options in MP settings) and I have them ON - I just exit GUI if needed (with Alt F4 of from MP's GUI).

    Then upon pressing some button (for me this is Start button on the remote or the keyboard ) MP will pop up in a second. If you need to exit MP, please do so (as above by Alt F4 or from MP's GUI), it's GUI will be minimized to tray again (remember the setting I mentioned earlier), press a button to show it again ...

    For me this script works, mostly quite reliably, though occasionaly there are issues.

    There is no need to map a button inside the MP, as the script sends Windows Messages (standard ones) directly to the MP's process/hidden window and before that, it checks whether MP window/process exist.

    Windows Messages Resore and Maximise are sent only if MP exists, but for some reason (I do not know why) they do not bring MP in front of other windows and for this I had to run MP.exe again (for me it does not start another MP process). If no MP process/window exist, thye script just runs MP.exe

    BR

    MaxT

    I you want to use my script, you may need to use Example 1 and Example 2 from the first post at http://www.autohotkey.com/forum/topic41397.html to get your device VID/PID, usage, page and its codes (at screenshots in that tread they are seen as Data) and amend the script accordingly.

    I mean the following lines:

    AHKHID_Register(12, 1, hGui, RIDEV_INPUTSINK)
    AHKHID_Register(65468, 136, hGui, RIDEV_INPUTSINK)
    ..
    And AHKHID_GetDevInfo(devh, DI_HID_VENDORID, True) = 1112
    And AHKHID_GetDevInfo(devh, DI_HID_PRODUCTID, True) = 114)
    ..
    I_039C00 := 18;ChannelUp 0x009C (156)
    I_039D00 := 19;ChannelDown 0x009D (157)
    ..
     

    nordemoniac

    Portal Pro
    January 20, 2010
    72
    5
    Home Country
    Norway Norway
    Hmm, so what you're saying is that this will allow me to be able to restore the GUI, but it might be behind some windows?
     

    Users who are viewing this thread

    Top Bottom