*** UPDATE 13/1/2007 - Works with MediaPortal 0.2.2.0 ***
Happy newyear
With the following executable (attached is also the source code) you can start MediaPortal automatically in fullscreen mode on the secondary display.
http://www.geocities.com/don_hannema/mp_start_1.4.zip (only for version 0.2.2.0)
This version does not rely on the File->Set Device option in the menu anymore, since this was removed when the final 0.2 version came out, and works like this:
1. start MediaPortal.exe
2. move the window to the second display position (e.g. 1280x0)
3. make the window fullscreen
Since, the set device option is not available I recompiled the 0.2.2 version to support a configurable device selection. Please copy the executable in the following zip over the original: http://www.geocities.com/don_hannema/MediaPortal_0.2.2.0.zip
This will make sure the secondary display is the primary one. If you want to override this, you can do this by adding the following section to MediaPortal.xml
A value of 0 will mean the primary display, 1 is the secondary display, 2 is your third display, etc.
Make sure that only the options "Auto hide mouse cursor in fullscreen mode when idle" and "Start Media Portal in fullscreen mode" are checked.
The program can also be started a second time, after which the focus is set to MediaPortal again. I use this program myself to activate MP with my remote control without the need to use my PC.
The code that I changed is the following in the d3dapp.cs file. From:
To:
The old version for MediaPortal 0.2.0.0 RC2 & RC3 is also still available here: http://www.geocities.com/don_hannema/mp_start_1.2.zip
This version assumes that the File->Set Device option in the menu is available and works in the following way:
1. start MediaPortal.exe
2. wait for the window to start and then open the Device Settings
3. select the second display
4. move the window to the second display position (e.g. 1280x0)
5. make the window fullscreen
Happy newyear
With the following executable (attached is also the source code) you can start MediaPortal automatically in fullscreen mode on the secondary display.
http://www.geocities.com/don_hannema/mp_start_1.4.zip (only for version 0.2.2.0)
This version does not rely on the File->Set Device option in the menu anymore, since this was removed when the final 0.2 version came out, and works like this:
1. start MediaPortal.exe
2. move the window to the second display position (e.g. 1280x0)
3. make the window fullscreen
Since, the set device option is not available I recompiled the 0.2.2 version to support a configurable device selection. Please copy the executable in the following zip over the original: http://www.geocities.com/don_hannema/MediaPortal_0.2.2.0.zip
This will make sure the secondary display is the primary one. If you want to override this, you can do this by adding the following section to MediaPortal.xml
Code:
<section name="debug">
<entry name="adapterOrdinal">1</entry>
</section>
Make sure that only the options "Auto hide mouse cursor in fullscreen mode when idle" and "Start Media Portal in fullscreen mode" are checked.
The program can also be started a second time, after which the focus is set to MediaPortal again. I use this program myself to activate MP with my remote control without the need to use my PC.
The code that I changed is the following in the d3dapp.cs file. From:
Code:
// Create the device
GUIGraphicsContext.DX9Device = new Microsoft.DirectX.Direct3D.Device(graphicsSettings.AdapterOrdinal,
graphicsSettings.DevType,
windowed ? ourRenderTarget : this,
createFlags | CreateFlags.MultiThreaded,
presentParams);
To:
Code:
int adapterOrdinal = 1;
using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")))
{
adapterOrdinal = xmlreader.GetValueAsInt("debug", "adapterOrdinal", 1);
}
// Create the device
GUIGraphicsContext.DX9Device = new Microsoft.DirectX.Direct3D.Device(adapterOrdinal,
graphicsSettings.DevType,
windowed ? ourRenderTarget : this,
createFlags | CreateFlags.MultiThreaded,
presentParams);
The old version for MediaPortal 0.2.0.0 RC2 & RC3 is also still available here: http://www.geocities.com/don_hannema/mp_start_1.2.zip
This version assumes that the File->Set Device option in the menu is available and works in the following way:
1. start MediaPortal.exe
2. wait for the window to start and then open the Device Settings
3. select the second display
4. move the window to the second display position (e.g. 1280x0)
5. make the window fullscreen