Post Reply

Forums -> UltraMon™ -> Toggle profile via script
Drizzt   2011-03-05 03:06
Hi, I just want to know if it's possible to write a script that read what profile is active and switch to another one. The result is that with one shortcut i can toggle profile. I bind this on my remote so using one shortcut use only one button on my remote.

Thanks !
Christian Studer   2011-03-05 08:26
That shouldn't be a problem, what are the two display configurations you would want to use?

Christian Studer - www.realtimesoft.com
Drizzt   2011-03-05 08:52
One TV 1080p an another 720p
Drizzt   2011-03-05 08:54
Only one TV at time
Christian Studer   2011-03-06 08:59
You could do this with the ToggleSingleMon script.

If that doesn't work for you, for example display settings aren't correct, let me know and send me the system information from UltraMon menu > About (with both TVs enabled).

Christian Studer - www.realtimesoft.com
Drizzt   2011-03-06 12:19
I tried ToggleSingleMon script and it work well. The only problem is when i come back from 720p Tv to the 1080p Tv, the resolution stay at 720p. I need it to switch to 1080p. Passing from the 1080p tv to 720p work very well.
Maybe it's something i can specify in the vbs script but i can't figure it.

Thanks for your help.
Christian Studer   2011-03-07 08:14
Replace the code in the script with the following, this will fix the issue:Set sys = CreateObject("UltraMon.System") curHeight = 0 For i = 0 To 1 Set mon = sys.Monitors(CLng(i)) If mon.Primary = True Then curHeight = mon.Height Exit For End If Next For i = 0 To 1 Set mon = sys.Monitors(CLng(i)) If mon.Primary = True Then mon.Enabled = False Else If curHeight = 1080 Then mon.Width = 1280 mon.Height = 720 Else mon.Width = 1920 mon.Height = 1080 End If mon.Enabled = True mon.Primary = True End If Next sys.ApplyMonitorChanges

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ -> Toggle profile via script

Post Reply