The Active Network
ActiveWin Anonymous | Create a User | Reviews | News | Forums | Advertise | VBA in Excel | Users Online: 0  
 

Recommended Links:

Play your favourite online pokies and take what you win fast at the same day withdrawal online casinos in Australia.

Now, you can buy real Instagram followers.

AWBridal Highly Recommend Wedding & Bridesmaid Dress Online Store

light tower

buy arabic Twitter follower

buy spotify real followers

A great website to buy Facebook followers from is BRSM. They have a great track record!

the Binary Option Robot

Get Windows Tablet & Phones at DHgate.com

neowin.net

Amazon.com

  *  

Setting Extend my windows desktop onto this monitor without the GUI?
Forum: Windows XP
Read Only Forum
Back to Windows XP
All Forums
  Displaying Posts 1 through 2 of 2
  This is an archived static copy of ActiveWin.com.
#1 By 77684 (204.40.1.129) at Monday, April 23, 2007 05:42:15 PM
Hello, I hope someone can help. I've got 6 locked down and isolated environments of 150+ machines (XP Pro) furthest away is 24hrs. The users don't have access to the display settings through right clicking on the desktop or through the control panel. We have dual monitors connected to an ATI x1300 PCIe card and using the "Extend my windows desktop onto this monitor". Every once in a while we receive a call saying the second monitor is no longer extended (normally cloning instead). Currently to fix this issue they call and I give a trusted user an account that has the appropriate permissions and then walk them through setting the Extend my desktop setting back and from there it works fine. I'm looking to automate this step hopefully @ssimply as possible. Using a simply batch file I can open the Display settings panel using "%systemroot%\system32\control.exe desk.cpl,@0,3" however they still have to know to click on the second monitor and to select "Extend my desktop...". So ideally I'm looking for something that the users can click on without a GUI or other questions/interactions. Any suggestions would be helpful. Thanks in advance.

#2 By 77684 (142.140.197.210) at Wednesday, April 25, 2007 10:32:29 AM
[QUOTE]Originally Posted by jgrantca: Hello, I hope someone can help. I've got 6 locked down and isolated environments of 150+ machines (XP Pro) furthest away is 24hrs. The users don't have access to the display settings through right clicking on the desktop or through the control panel. We have dual monitors connected to an ATI x1300 PCIe card and using the "Extend my windows desktop onto this monitor". Every once in a while we receive a call saying the second monitor is no longer extended (normally cloning instead). Currently to fix this issue they call and I give a trusted user an account that has the appropriate permissions and then walk them through setting the Extend my desktop setting back and from there it works fine. I'm looking to automate this step hopefully @ssimply as possible. Using a simply batch file I can open the Display settings panel using "%systemroot%\system32\control.exe desk.cpl,@0,3" however they still have to know to click on the second monitor and to select "Extend my desktop...". So ideally I'm looking for something that the users can click on without a GUI or other questions/interactions. Any suggestions would be helpful. Thanks in advance. [/QUOTE]I've found a solution for our environment it's to use a VB script this will re-enable the extend desktop setting on demand. --------- Option Explicit Dim WshShell, Dummy, Splash On Error Resume Next Set WshShell = WScript.CreateObject("WScript.Shell") 'Main Call DoIt WScript.Quit Sub DoIt wshshell.Run("%systemroot%\system32\control.exe desk.cpl,@0,3") ' Give Display Properties time to load WScript.Sleep 1000 WshShell.SendKeys "2" WScript.Sleep 10 WshShell.SendKeys "%E" WScript.Sleep 500 WshShell.SendKeys "%A" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{ENTER}" End Sub 'DoIt -------------



 

  *  
  *   *
 
replica watches