Ernie 2011-07-23 00:39
Hi. I was wondering if there was a way of determine how many monitors are loaded via UltraMon from within the scripts.
I would like the script to apply different wallpaper profiles depending if my PC is doc (using 2 monitors) or undocked (the laptops display with a different resolution).
Thanks Ernie
|
Christian Studer 2011-07-23 12:24
You can do this with the NumActiveMonitors property of the System object, see UltraMon Help > Scripting > Reference > Objects > System for details. You can check the docked status of the system via the Docked property of the Utility object.
There are already two scripts which do something similar, look for ApplyProfileAndWallpaperDockedUndocked and ApplyProfileAndWallpaperNumMons on the scripts page.
Christian Studer - www.realtimesoft.com
|
Ernie 2011-07-23 23:55
Thanks. I did notice those scripts actually.
What sets the Docked property of the the ultramon.utility? When I check it when docked, it says Docked = False. Havent tried undocking to see what it says but will do that next.
Ernie
|
Christian Studer 2011-07-24 02:41
UltraMon queries the operating system for the docked status of the system.
Most likely Windows doesn't recognize that the laptop is docked, to confirm this go to Start Menu and click on the little arrow next to the shutdown option (on Windows 7), then check if you have an Undock option on that menu.
Christian Studer - www.realtimesoft.com
|
Ernie 2011-07-25 02:55
Thanks. Yep, its not there.
I got it to work by using the Number of Monitors in System and putting an extra if statement at the Start procedure in UltraMon Wallpaper Auto Changer 2. Works great.
Thanks for the help Christian, its a great product.
Ernie
|