Collapse All
Parallels C API Reference Guide
PrlDevMouse_AsyncSetPos Function
PrlApi.h Mouse Control

Moves a mouse pointer to the specified absolute position within the virtual machine display coordinate grid and sends a mouse event (presses or releases the specified button).

Syntax
PRL_HANDLE PrlDevMouse_AsyncSetPos(
    PRL_HANDLE hObj, 
    PRL_INT32 x, 
    PRL_INT32 y, 
    PRL_INT32 z, 
    PRL_INT32 w, 
    PRL_UINT32 buttons
);
File
Parameters

hObj
x
X coordinate to move the mouse pointer to.
y
Y coordinate to move the mouse pointer to.
z
Z coordinate to mouse pointer to (scroll).
w
W coordinate to mouse pointer to (h-scroll).
buttons
Mouse button identifier. See the PRL_MOUSE_BUTTON enumeration for available choices. The values can be combined using the binary OR operator |. To press a button, specify the value identifying the button. To release a button, specify PMB_NOBUTTON. To move the mouse pointer without pressing any buttons, specify PMB_NOBUTTON.
Returns

PRL_HANDLE . Handle on sending operation

Remarks

This function can only be used if Parallels Tools package is installed in the target virtual machine and if Sliding Mouse feature is enabled. To find out if Sliding Mouse is enabled, use the PrlDevDisplay_IsSlidingMouseEnabled function.

Links
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!