Contact Info

Crumbtrail » Administration » Scripts » Adsi

List Virtual Machine Mouse Information in Windows

You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.

List Virtual Machine Mouse Information in Windows using VBScript, WMI and LDAP


On Error Resume Next

Set objVS = CreateObject("VirtualServer.Application")
set colVMs = objVS.VirtualMachines

For Each objVM in colVMS
    Set objMouse = objVM.Mouse
    Wscript.Echo objVM.Name
    Wscript.Echo "Horizontal position: " & objMouse.HorizontalPosition
    Wscript.Echo "Scroll wheel position: " & objMouse.ScrollWheelPosition
    Wscript.Echo "Using absolute coordinates position: " & _
    Wscript.Echo "Vertical position: " & objMouse.VerticalPosition