Automatically start MP fullscreen on secondary display (1 Viewer)

fanoI

Portal Pro
December 26, 2006
121
1
With the modified exe on this thread I'm experiencing tearing issues (I've to disable Directx Exclusive mode :( ) so using the original exe I've tried your script
and now it works well and I can activate Directx Exclusive mode too :D no more tearing!!!

I've created an .exe file and I'm calling it whit my Imon remote as I do whit the original MP.exe to start Mediaportal but the put focus function that Mp has if already running don't work well (... it works but it switch uselessly the screen too...)

So I've changed it to avoid this:

Code:
#NoTrayIcon
;  It only puts the focus on and maximize it if was minimized if Mediaportal is already running.
If (WinExists ("MediaPortal") ) Then
	WinActivate ("MediaPortal") 
	Exit
EndIf

$MP_Path = "C:\Program Files\Team MediaPortal\MediaPortal"
RunWait ("RunDll32.exe NvCpl.dll,dtcfg Primary 2")
$MP_PID = Run ($MP_Path & "\MediaPortal.exe", $MP_Path)
WinWait ("MediaPortal - Home")
$ret = WinSetState ("MediaPortal - Home", "", @SW_MAXIMIZE)
RunWait ("RunDll32.exe NvCpl.dll,dtcfg Primary 1")
ProcessSetPriority ($MP_PID, 4)
It maximize MP if is accidentally minimized, too ;)

This AutoIt is really useful... so many interesting functions!!!

fanoI
 

silentio

Portal Member
February 26, 2007
31
0
35
hi,

i have a problem: i have replaced the Mediaportal.exe, but it does not work. A month ago I tried out starting mediaportal on second screen too, and there it works without causing any problems

Now i have bought a new TFT (connected via dvi)and I am not able to arrange to start mp on the second screen again.

maybe it has something to do with the path, but i have extra reinstalled mediaportal on C:/Programme/Team Mediaportal/Media Portal/, like I had a month ago.

I have also a new svn installed.

So I am really idealess
 

silentio

Portal Member
February 26, 2007
31
0
35
After a fresh install, now I have reached that it works again. Mediaportal is opening on fullscreen on the secondary screen, but I also see parts from it on the primary screen.
Maybe it has something to do with the resolution.
Primary: 1680x1050
Secondary: 1270x768

If I have the same resolution on both screens it works.

If I install the latest svn it did not work again.

thx siletnio
 

chiel

New Member
June 3, 2007
3
0
38
I just ask this to be shure.

Is it possible with this script to get MP on the secondary display in full screen, while an other person is working on the primary screen normaly with all windows on this primary screen with start buttons etc. etc. or not?
 

druid9

MP Donator
  • Premium Supporter
  • December 31, 2006
    255
    9
    60
    Country flag
    The biggest problem I have is that acceleration only works on the primary display. With MP in full screen on the TV (set as secondary) my kids can browse the web, us Office products etc., but if they start playing games, weird things begin to occur.

    Also, with two users at the machine, there is a constant fight for focus of the applications. I do remember reading something about automatically giving MP focus when the remote is used, but never found it again.

    A multi user/multi use system can be made to work with the above limitations, but is still a bit clunky imho.
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,584
    744
    Göteborg
    Sweden Sweden
    Country flag
    I use EventGhost to control MP with a remote. It can send commands to MP even if it isn't in focus.
     

    kamelot

    Portal Member
    May 15, 2007
    16
    0
    48
    I've recompiled the 0.2.2.0 version to use the secondary display by default.

    See the start post for the executable !
    Thanks a lot for the recompiled version. Now it works like a charm
    I would like to test the 0.2.3.0 RC1, could you compile it the same way ?

    Many thanks for your work Dhannema !
     

    kamelot

    Portal Member
    May 15, 2007
    16
    0
    48
    I've recompiled the 0.2.2.0 version to use the secondary display by default.

    See the start post for the executable !
    Thanks a lot for the recompiled version. Now it works like a charm
    I would like to test the 0.2.3.0 RC1, could you compile it the same way ?

    Many thanks for your work Dhannema !
    It is ok now. I've recompiled 0.2.3.0 RC1 with your modifications. mp_start works now again with MP 0.2.3.0 RC1 :)
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    vapourEyes Automatically Re-Tune Periodically Improvement Suggestions 1
    vapourEyes Automatically Tune to Strongest Duplicate Channel Improvement Suggestions 99
    W [solved] [FIXED] Survivor season 40 not automatically matching My TVSeries 1
    G Switch to new channel at begining of program automatically Feature Requests 0
    C How do I get MediaPortal to separate recording files by channel and month? General 2
    H MP1.21F video database scan, can it be scheduled to automatically run in background General Support 5
    Steve.Rayner61 Online Videos - Automatic Updates fails 'Automatic update disabled. Check your internet connection' OnlineVideos 10
    greybox 1.20 final does not update video duration automatically 1.20 10
    greybox 1.20 final does not update video duration automatically 1.20 Pre Release 1
    Scheibes MP2 - V2.1 Meta-Data import not complete by automatic import Older releases 3
    D Getting Started General Support 30
    horned_reaper [Music] 5012: Start current music track from the beginning Improvement Suggestions 21
    T [solved] Green Button start MP not working....but box ticked in config. General Support 1
    W [solved] MP suddenly Crashes when starting live TV on most channels and on recordings from the same channels General Support 20
    W [solved] MP suddenly Crashes when starting live TV on some channels and on some recordings Television (MyTV frontend and TV-Server) 1
    vvulture UNKNOWN ERROR when starting live TV General Support 6
    ajs Trakt error when start with MP crash Trakt 1
    F Recording starts at second time only MediaPortal 1 Talk 6
    tano_grasa Movie cover not showing when starting a movie aMPed 0
    ajs [solved] 4982: Why this error hard stop when Mediaportal start? MediaPortal 1 3
    joecrow AMD Radeon Settings app. won't start after hibernation. General Support 0
    Icaro Close MP when the external player is started General Support 13
    M MP1 stops responding after Starting Plugins General Support 14
    joecool70 Fehlermeldung Error invoking action "Start Timeshift" Allgemeines Support- und Diskussionsforum 1
    Similar threads

























    Top Bottom