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

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
Ok guys, please bare with me; :oops:

I'm on MP version 1.1.1.

I have set MediaPortal to boot with the computer, but not start the GUI, and close only the GUI on exit, minimizing MP to the statusbar. I like the idea of always having MediaPortal available in a second.

On my remote I can send any kind of button, even combined. So what I normally do is create a shortcut to MP, then set that to a button on the remote. In addition, the remote has a button that sends "ALT + F4", which of course means "close active application."

The thing is; How can I restore MP from the icon in the statusbar? If I start MP the first time using the remote (if it's not started at all), then exit the GUI with the "ALT + F4 button", MP will still be running in the statusbar, and you can doubleclick it to open the GUI again, and continue watching TV - in a second!

BUT! If I use the remote for starting the MP shortcut, it will not resume the already open MP session in the statusbar, but open a new MP session, where the TV is paused, and there is no sound. If I close it, then doubleclick the icon at the statusbar, it will continue at whatever point it has comed to, it's not paused, and the sound is there - which is what I want.


In other words; Is there ANY way I can assign a button on my remote for clicking "Restore" on the statusbar icon?

Please tell me there's a way. I hate using the mouse...
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
Re: Starting MediaPortal from minimized state with a Remote

Really? There is NO way of restoring a minimized MediaPortal session?

_____________________________________

Ok - What program does MP start when I right click the icon, and click "Restore"?

Maybe I can set the shortcut directly to this program.
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
Re: Starting MediaPortal from minimized state with a Remote

I have to bump this thread...

I can't be the only one who wants to do this?

So generally what I'm asking for, is "How do I restore Mediaportal with the keyboard?" I'm talking about the statusbar icon. I want to restore that Mediportal session, and not start a new one.

Please, anyone? Something you might add in 1.2 final?
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
Re: Starting MediaPortal from minimized state with a Remote

Is there a script I can create maybe, which I then link to a button on the remote?
 

usualsuspect

Portal Pro
May 12, 2009
631
98
Home Country
Germany Germany
AW: Starting MediaPortal from minimized state with a Remote

Hi,

I did not check, but I gues it could be done using nircmd .
The nircomd win "allows you to close, hide, show, maximize, and minimize the specified window."
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
Re: Starting MediaPortal from minimized state with a Remote

So how do I connect this with the "Restore" button on MP tray icon?

Another thing is to stop MP from opening in more than one windows (session)? So that if the system tray is running, it should only start the GUI for that tray...right?

Any MP devs. who can help me here? ANY way at all to restore MP?
 

usualsuspect

Portal Pro
May 12, 2009
631
98
Home Country
Germany Germany
AW: Starting MediaPortal from minimized state with a Remote

is there really the need to do? shouldn't it be possible to just maximize the minimized mp window? this could be "adressed" via the mp-process name. please see the nircmd documentation. as mentioned, I am not sure, it works, just an idea.

I just checked with my "old" 1.2 alpha (MediaPortal v1.1.5.0)
open mp
minimize
click on mp shortcut
mp session is re-opened from tray.
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
Re: Starting MediaPortal from minimized state with a Remote

Hi again!

The thing is, I don't minimize MP. Let's say that MP is not running at all. This is what I do/what happens:

- Start MP
- Close MP with Alt+F4 (on the remote), the GUI closes
- MP Tray is still running, ready to start a new GUI
- I run the shortcut for MediaPortal (with the remote)
- Instead of adding a GUI to the tray already running, a new session starts
- The new session has TV "paused" and there's no sound.

I have to manually doubleclick the tray to get the GUI started again.

I have set both "minimize to tray on startup" & "minimize to tray on GUI exit".
 

usualsuspect

Portal Pro
May 12, 2009
631
98
Home Country
Germany Germany
AW: Starting MediaPortal from minimized state with a Remote

just re-checked without minimizing, but with "minimize gui to tray on exit" and Alt-F4.
--> mp goes to try
--> click on mp shortcut
----> old mp session reopens from tray.

that's exactly what you want, isn't it? (just without "minimize to tray on startup")

just re-re-checked even with "min .. startup", same behaviour.
 

nordemoniac

Portal Pro
January 20, 2010
72
5
Home Country
Norway Norway
Re: Starting MediaPortal from minimized state with a Remote

That's exactly what I want!

Mine doesn't! It didn't in 1.1.0, 1.1.3, 1.2A or 1.2B. It just starts an additional windows, instead of creating a GUI for the tray...

Any tip on why this doesn't happen for me?


Could you please test this:

Set it to minimize on startup, and minimize to tray on GUI exit, and create a shortcut where you set a hotkey; "Shift+Alt+1" and then instead of clicking the shortcut, you type that key combination. That's what my remote actually does.

______________________________________________________________________________________________________________


OK, I tested a bit more. This is what happens:


- Start MP, immediately minimizes to tray (no GUI) (perfect!)
- Start MP again, it creates a GUI to the existing tray (perfect!)
- Close it with Alt+F4, GUI exits, and tray keeps running (perfect!)
- Start the third time, a new MP windows comes up, instead of creating a GUI for the session running in the status bar...crap...


So, it will not make a difference. It will only let me successfully start ONE time. If I use Alt+F4, it won't create a new GUI for that session unless I doubleclick the tray, or rightclick and click "restore".

Are you able to replicate the problem?
 

Users who are viewing this thread

Top Bottom