2008-07-02, 06:53
Is there anyway for me to launch XBMC default on the 2nd monitor/display? It always starts up in my primary device never the secondary one.
WiSo Wrote:I know that sdl 1.3 will have support for multi monitor but dunno when it'll ready.I thought we used the latest SDL SVN which is the same as SDL 1.3 pre-alpha?
WiSo Wrote:Not for win32. There it's still 1.2. Does Linux use a newer version?I think so but I am not sure, you have to ask the Linux and Mac developers.
WiSo Wrote:If we find a possibility to do so ofc. I know that sdl 1.3 will have support for multi monitor but dunno when it'll ready.
Can't tell about the mouse. It's handled by SDL and I dunno if it can be freed
WiSo Wrote:I'm open for any source code lines which people may found about this topic.
I only found a possibility to start a new shell on the second monitor via ShellExecute but nothing about switching the running process to another monitor
Process p = new Process();
p.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
p.StartInfo.FileName = "C:\\Program Files\\XBMC\\XBMC.exe";
p.StartInfo.UseShellExecute = true;
p.StartInfo.Arguments = "-p -fs";
p.Start();
p.WaitForInputIdle();
Rectangle secondMonitor = Screen.AllScreens[1].WorkingArea;
WinApi.SetWindowPos(p.MainWindowHandle,IntPtr.Zero,secondMonitor.Left, secondMonitor.Top, secondMonitor.Width,secondMonitor.Height, 0);