Nazgulled
2009-02-06, 00:13
Hi,
I use my HTPC for things other than multimedia stuff and I normally access it through remote administration. For this, I run the system with a resolution at 1280x720, but I like to run XBMC and watch videos in the highest resolution possible that my TV allows me to and that is 1920x1080.
Manually switching resolutions every time I log in by remote administration and need to run XBMC is a pain... Why not change the desktop resolution (to whatever the user defined in the settings) when running XBMC and restore this resolution when exiting XBMC?
I use Windows but I guess this is a feature that could be implemented in all OS's?
By the way, for anyone that has interest in this and while this is not possible in the current XBMC version (as far as I know), I'm doing this with the help of VB scripting and nice little tool called "Display Changer". Basically, I run the following script instead of running "XBMC.exe":
Const COMPUTER = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & COMPUTER & "\root\cimv2")
Set listProcesses = objWMIService.ExecQuery ("SELECT * FROM Win32_Process")
mpProcess = False
For Each objProcess in listProcesses
If (StrComp(objProcess.Name, "XBMC.exe", 1) = 0) Then
mpProcess = True
Exit For
End If
Next
set wshShell = WScript.CreateObject("WScript.Shell")
If mpProcess = False Then
WshShell.Run("""C:\Program Files\Display Changer\dc.exe"" " & _
"-width=1920 -height=1080 -depth=32 -refresh=50 " & _
"""C:\Program Files\XBMC\XBMC.exe"" -fs -p")
Else
WshShell.Run("""C:\Program Files\XBMC\XBMC.exe"" -fs -p")
End If
WScript.Quit
I use my HTPC for things other than multimedia stuff and I normally access it through remote administration. For this, I run the system with a resolution at 1280x720, but I like to run XBMC and watch videos in the highest resolution possible that my TV allows me to and that is 1920x1080.
Manually switching resolutions every time I log in by remote administration and need to run XBMC is a pain... Why not change the desktop resolution (to whatever the user defined in the settings) when running XBMC and restore this resolution when exiting XBMC?
I use Windows but I guess this is a feature that could be implemented in all OS's?
By the way, for anyone that has interest in this and while this is not possible in the current XBMC version (as far as I know), I'm doing this with the help of VB scripting and nice little tool called "Display Changer". Basically, I run the following script instead of running "XBMC.exe":
Const COMPUTER = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & COMPUTER & "\root\cimv2")
Set listProcesses = objWMIService.ExecQuery ("SELECT * FROM Win32_Process")
mpProcess = False
For Each objProcess in listProcesses
If (StrComp(objProcess.Name, "XBMC.exe", 1) = 0) Then
mpProcess = True
Exit For
End If
Next
set wshShell = WScript.CreateObject("WScript.Shell")
If mpProcess = False Then
WshShell.Run("""C:\Program Files\Display Changer\dc.exe"" " & _
"-width=1920 -height=1080 -depth=32 -refresh=50 " & _
"""C:\Program Files\XBMC\XBMC.exe"" -fs -p")
Else
WshShell.Run("""C:\Program Files\XBMC\XBMC.exe"" -fs -p")
End If
WScript.Quit