05.08.2013 Views

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Package prlsdkapi Class VmDisplayDev<br />

capture screen to file(self, filename, x, y, width, height,<br />

format=1342177291, quality=-1)<br />

Captures a screen area of a remote virtual machine directly to a file on the<br />

client computer. This is an asynchronous method.<br />

Parameters<br />

filename: Name and path of the file to save the image to.<br />

x: The X coordinate of the area to capture.<br />

y: The Y coordinate of the area to capture.<br />

width: The width of the area to capture (pixels).<br />

height: The height of the area to capture (pixels).<br />

format: Image format to use. See consts.PIF xxx.<br />

quality: Image quality factor. Must be in the range from 0 to<br />

100, or -1. Specify 0 to use the highest data compression,<br />

100 for no compression, or -1 for the default value.<br />

Return Value<br />

A Job object.<br />

set mouse pos(self, coord xyz, buttons)<br />

Set the mouse pointer position.<br />

Parameters<br />

coord xyz: A tuple containing mouse pointer coordinates (x, y, z).<br />

The ’z’ coordinate (scroll) is optional.<br />

buttons: Mouse buttons state. See consts.PMB xxx.<br />

move mouse(self, coord dxdydz, buttons)<br />

Move the mouse pointer to a relative position and send a mouse event (press<br />

or release the specified mouse button). The position to which you want to<br />

move the pointer is calculated relatively to the center of the screen.<br />

Parameters<br />

coord dxdydz: A tuple containing mouse pointer coordinate offsets<br />

(dx, dy, dz). The ’dz’ offset (scroll) is optional.<br />

buttons: Mouse buttons state. See consts.PMB xxx.<br />

58

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!