Welcome to MSDN Blogs Sign in | Join | Help

Request for a WMI script

I am looking for a quick way to toggle my 2nd monitor, preferably using WMI, but anything will do. I want to simply run the app/script and have it enable or disable my 2nd monitor. This is because I often walk into my office, plug my Tablet PC into my 2nd monitor and enable the 2nd monitor to extend my desktop. Then when I run to meetings, I unplug the monitor and forget to disable the 2nd monitor support, so the desktop is still extended. Then when in meetings, many of my apps appear on the 2nd monitor, which no longer exists.

So, does anyone have a simple script to help me out? I will happily give you big kudos on my blog.

 

Published Monday, October 25, 2004 9:05 AM by bgroth
Filed under:

Comments

Monday, October 25, 2004 11:44 AM by Adwait Ullal

# re: Request for a WMI script

Brian:

Here's one I googled:

http://www.wyrdrune.com/index.html?MonSwitch.html~main

HTH

- Adwait
Monday, October 25, 2004 11:47 AM by Nick Parker

# re: Request for a WMI script

Here is a free COM component (http://www.realtimesoft.com/ultramon/download.asp) that allow all kinds of different access, according to Ole View you could write something as follows:

Set obj = CreateObject("UltraMon.System")
obj.SecondaryEnable
'or
obj.SecondaryDisable
Wednesday, October 27, 2004 7:51 AM by Brian Groth

# re: Request for a WMI script

The first two suggestions are certainly interesting, but I'd rather not run a new DLL or install something new.
New Comments to this post are disabled
 
Page view tracker