title: How can I get the coordinates of my second display with vbscript?
body: <p>I have this script where I'm getting the Horizonal and Vertical resolution of all the monitors, but so far I didn't find any way to know the coordinates of the monitor (I need to know if the second monitor connected to the computer is to the left or right of the main display).
  Is there any code that I can run with vbscript that can get me this info? </p>
  
  <pre><code>    Set wmiObjSet = GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("Win32_VideoController")
      For Each obj In wmiObjSet
        WScript.Echo obj.CurrentHorizontalResolution
        WScript.Echo obj.CurrentVerticalResolution
      Next
  </code></pre>
  
  <p>Thanks!</p>