Automatically start MP fullscreen on secondary display (1 Viewer)

dhannema

Portal Member
January 4, 2006
29
0
Home Country
Netherlands Netherlands
Re: great job...

bored said:
just one question, would mediaportal start automatically if the path in mp_start.exe would be correct?

Yes, mp_start will automatically start mediaportal if the specified path is correct. This is essential. Starting mediaportal yourself does not work.

In your case you would like to start mp_start with the following command:

mp_start "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe"
 

bored

Portal Member
March 7, 2006
12
0
Re: great job...

dhannema said:
In your case you would like to start mp_start with the following command:

mp_start "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe"

thats it, but how to change that command?
 

jawbroken

Portal Pro
August 13, 2005
706
0
Home Country
Afghanistan Afghanistan
It is a command line argument. You can create a shortcut to mp_start and add the path on the shortcut list, or create a .bat file that runs it with the path, etc. There are many ways to get it working.
 

bored

Portal Member
March 7, 2006
12
0
ok, i see that this little problem can be easily solved... in fact i just didnt really understand how, maybe you could describe that shortcut-solution for a beginner like me... that would be a great help..

so:
a) i create a shortcut to mp_start
b) i add the path "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe" to the shortcut list.. only problem: what shortcut list?

i guess the .bat-file solution might be far too difficult for me ;-)

hope you can help me
greetz bored
 

dhannema

Portal Member
January 4, 2006
29
0
Home Country
Netherlands Netherlands
bored said:
ok, i see that this little problem can be easily solved... in fact i just didnt really understand how, maybe you could describe that shortcut-solution for a beginner like me... that would be a great help..

It's very easy, follow these steps:
1. rightclick on your desktop
2. select New -> Shortcut
3. copy-pase this location:

c:\mp_start.exe "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe"

This assumes that you have mp_start.exe located in your c:\ folder; if you have it on your desktop, use something like c:\documents and settings\bored\desktop\mp_start.exe
4. click next
5. click finish

Now you can start mp_start using the icon on your desktop.
 

bored

Portal Member
March 7, 2006
12
0
dhannema said:
Now you can start mp_start using the icon on your desktop.

thx for that detailed description, now it works perfectly ;-)

other question, maybe you can help me:
is it possible to start MP with my remote using that shortcut ?
i use PCTV remote and changed the profiles.ini from

; start MediaPortal with Remote
key1006=EXEC C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe| -10ft -full

to the shortcut (not desktop but the mediaportal-folder):

; start MediaPortal with Remote
key1006=EXEC C:\Programme\Team MediaPortal\MediaPortal\Verknüpfung mit MediaPortal.exe.lnk| -10ft -full

("Verknüpfung mit Mediaportal.exe.lnk" is the name of the shortcut i created)
but nothing happens... :-(
 

dhannema

Portal Member
January 4, 2006
29
0
Home Country
Netherlands Netherlands
bored said:
dhannema said:
start MediaPortal with Remote
key1006=EXEC C:\Programme\Team MediaPortal\MediaPortal\Verknüpfung mit MediaPortal.exe.lnk| -10ft -full

("Verknüpfung mit Mediaportal.exe.lnk" is the name of the shortcut i created)
but nothing happens... :-(

Probably pctv doesn't know how to start .lnk files. As I'm not sure if the ini file can handle something like this:

; start MediaPortal with Remote
key1006=EXEC c:\mp_start.exe "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe" | -10ft -full

You probably would want to create a batch file with the start command and use the following section in the ini file:

; start MediaPortal with Remote
key1006=EXEC C:\documents and settings\bored\desktop\mpstart.bat | -10ft -full

For this to work you can create the batch file like this:
1. Right click on the desktop and select New -> Text Document
2. enter the filename mpstart.bat (and select Yes to the warning)
3. now right click the new icon and select Edit
4. type in the following:
c:\mp_start.exe "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe"

(assuming you have mp_start in your c:\ folder)
5. Save and close
 

bored

Portal Member
March 7, 2006
12
0
dhannema said:
Probably pctv doesn't know how to start .lnk files. As I'm not sure if the ini file can handle something like this:

; start MediaPortal with Remote
key1006=EXEC c:\mp_start.exe "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe" | -10ft -full

ja, as you feared, the ini file cant handle such a command but i tried to create the bat-file and it partly worked...

what i did:
1) mp_start.exe is placed in mediaportal-folder C:\Programme\Team MediaPortal\MediaPortal\mp_start.exe

2) mpstart.bat is placed in the same folder with the command:
mp_start.exe "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe"

3) i changed the exec-command in the ini-file to:
; start MediaPortal with Remote
key1006=EXEC C:\Programme\Team MediaPortal\MediaPortal\mpstart.bat| -10ft -full

so when i open mpstart.bat directly it works perfectly, but when using my remote only for less than a second i can see a small window opening and closing... thats it...

kind of weird, cause the bat-file seems to work when opening it directly but not when using the same file with my remote, although something opens...

maybe you know whtas wrong, or maybe i wanna have to give up.. anyway great thanks for your help til now ;-)
 

dhannema

Portal Member
January 4, 2006
29
0
Home Country
Netherlands Netherlands
bored said:
so when i open mpstart.bat directly it works perfectly, but when using my remote only for less than a second i can see a small window opening and closing... thats it...

I see what's happening.
Change the content of the batch file to include the full path names:

"C:\Programme\Team MediaPortal\MediaPortal\mp_start.exe" "C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe"
 

Users who are viewing this thread

Top Bottom