Help me Obi-Wan KenCody! 
Here is what I want to automate...
[attachimg=#]
It just so happens that I was looking for a way to do this today via AutoIt (or something similar) and was in the middle of researching it, when one coworker walked up to another coworker at the desk next to mine and asked if he knew of a way to do the same thing I was researching. So, If you help me, you will be helping two more via proxy.
Here is the simple scenario:
I have a laptop. Sometimes I am only using my laptop's build in display. Other times I have an external monitor connected and I want to "Extend my Windows desktop onto this monitor." so I can use both displays. I am getting tired of having to do this manually. And then manually again to reverse things.
I have found some info on MSDN, but it is only for getting/setting display resolutions. I can't track down the API or WMI calls that are behind the Display Properties dialog. At this point I may have to employ a Windows API spy program unless I can find some documentation.
Have any of you gurus come across this info in your travels?

Here is what I want to automate...
[attachimg=#]
It just so happens that I was looking for a way to do this today via AutoIt (or something similar) and was in the middle of researching it, when one coworker walked up to another coworker at the desk next to mine and asked if he knew of a way to do the same thing I was researching. So, If you help me, you will be helping two more via proxy.

Here is the simple scenario:
I have a laptop. Sometimes I am only using my laptop's build in display. Other times I have an external monitor connected and I want to "Extend my Windows desktop onto this monitor." so I can use both displays. I am getting tired of having to do this manually. And then manually again to reverse things.
I have found some info on MSDN, but it is only for getting/setting display resolutions. I can't track down the API or WMI calls that are behind the Display Properties dialog. At this point I may have to employ a Windows API spy program unless I can find some documentation.
Have any of you gurus come across this info in your travels?
















- carpe noctem


