Automatically start MP fullscreen on secondary display | Page 10

Discussion in 'Tips and Tricks' started by dhannema, January 4, 2006.

  1. fanoI

    fanoI Portal Pro

    Joined:
    December 26, 2006
    Messages:
    121
    Likes Received:
    1
    Ratings:
    +1 / 0
    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 (Text):
    1.  
    2. #NoTrayIcon
    3. ;  It only puts the focus on and maximize it if was minimized if Mediaportal is already running.
    4. If (WinExists ("MediaPortal") ) Then
    5.     WinActivate ("MediaPortal")
    6.     Exit
    7. EndIf
    8.  
    9. $MP_Path = "C:\Program Files\Team MediaPortal\MediaPortal"
    10. RunWait ("RunDll32.exe NvCpl.dll,dtcfg Primary 2")
    11. $MP_PID = Run ($MP_Path & "\MediaPortal.exe", $MP_Path)
    12. WinWait ("MediaPortal - Home")
    13. $ret = WinSetState ("MediaPortal - Home", "", @SW_MAXIMIZE)
    14. RunWait ("RunDll32.exe NvCpl.dll,dtcfg Primary 1")
    15. ProcessSetPriority ($MP_PID, 4)
    16.  
    It maximize MP if is accidentally minimized, too ;)

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

    fanoI
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. silentio

    silentio Portal Member

    Joined:
    February 26, 2007
    Messages:
    31
    Likes Received:
    0
    Ratings:
    +0 / 0
    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
     
  4. silentio

    silentio Portal Member

    Joined:
    February 26, 2007
    Messages:
    31
    Likes Received:
    0
    Ratings:
    +0 / 0
    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
     
  5. chiel

    chiel New Member

    Joined:
    June 3, 2007
    Messages:
    3
    Likes Received:
    0
    Ratings:
    +0 / 0
    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?
     
  6. vuego
    • Team MediaPortal

    vuego Documentation Group

    Joined:
    August 5, 2006
    Messages:
    1,570
    Likes Received:
    660
    Occupation:
    Alchemist, Astrobiologist, Exotic dancer
    Location:
    Göteborg
    Ratings:
    +868 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    ^^
     
  7. druid9
    • Premium Supporter

    druid9 MP Donator

    Joined:
    December 31, 2006
    Messages:
    255
    Likes Received:
    9
    Ratings:
    +9 / 0
    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.
     
  8. vuego
    • Team MediaPortal

    vuego Documentation Group

    Joined:
    August 5, 2006
    Messages:
    1,570
    Likes Received:
    660
    Occupation:
    Alchemist, Astrobiologist, Exotic dancer
    Location:
    Göteborg
    Ratings:
    +868 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    I use EventGhost to control MP with a remote. It can send commands to MP even if it isn't in focus.
     
  9. druid9
    • Premium Supporter

    druid9 MP Donator

    Joined:
    December 31, 2006
    Messages:
    255
    Likes Received:
    9
    Ratings:
    +9 / 0
    Any Tips on How to set it up so I can give it a try?
     
  10. kamelot

    kamelot Portal Member

    Joined:
    May 15, 2007
    Messages:
    16
    Likes Received:
    0
    Ratings:
    +0 / 0
    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 !
     
  11. kamelot

    kamelot Portal Member

    Joined:
    May 15, 2007
    Messages:
    16
    Likes Received:
    0
    Ratings:
    +0 / 0
    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 :)
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!