IVMMouse interface

The IVMMouse interface controls the mouse device within a virtual machine. The IVMMouse for a virtual machine can be retrieved using the IVMVirtualMachine::Mouse property. Coordinates for the mouse device can be represented either in absolute coordinates or in delta coordinates. Use the UsingAbsoluteCoordinates property to distinguish between the two methods of coordinate representation. Note that retrieving the current cursor position and the use of absolute coordinates are only supported if the guest operating system has Additions installed.

Members

The IVMMouse interface inherits from the IDispatch interface. IVMMouse also has these types of members:

Methods

The IVMMouse interface has these methods.

Method Description
Click Simulates a mouse button click (press and release) using an enumerated button index.
GetButton Retrieves the current state (up or down) of the specified mouse button.
SetButton Sets the current state (up or down) of the specified mouse button.

Properties

The IVMMouse interface has these properties.

Property Access type Description
HorizontalPosition
Read/write
The absolute x-coordinate of the mouse. Not valid when using delta coordinates.
ScrollWheelPosition
Write-only
The current z-coordinate of the mouse. The indicated value can only represent delta coordinates.
UsingAbsoluteCoordinates
Read/write
Indicates whether the mouse device is set to use absolute coordinates, FALSE if set to use delta coordinates.
VerticalPosition
Read/write
The absolute y-coordinate of the mouse. Not valid when using delta coordinates.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IDispatch