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 />

of the remote virtual machine. In scripts, you can take a snapshot of a particular screen<br />

in advance and then compare it to the screen captured at runtime. If comparison<br />

operation determines that you’ve got the screen of interest, you can interact with it by<br />

sending mouse or keyboard commands (pressing buttons, making selections, etc.).<br />

• Secondary display capture. This group of functions is almost identical to the Primary<br />

Display Capture group with the exception that it operates on a secondary display(s) if<br />

one is installed in a virtual machine.<br />

• Mouse control. These functions provide control over the mouse in a virtual machine.<br />

You can change the position of the mouse pointer, press and release mouse buttons,<br />

and use a scroll wheel. In scripts, you can move a mouse pointer to the coordinates you<br />

know in advance (coordinates of a button, an edit control, etc.) and perform an action.<br />

• Keyboard control. These functions simply send a key/action code combination to the<br />

virtual machine. In scripts, you can use these functions to interact with controls on a<br />

window opened inside the virtual machine (pressing buttons, selecting options, etc.).<br />

In a typical GUI application, essential visual controls usually have keyboard shortcuts<br />

(accelerator keys) assigned to them. If a control doesn’t have a shortcut, then you will<br />

have to use mouse control functions to position a mouse pointer over the control to<br />

select it.<br />

For more information and code samples, please see <strong>Parallels</strong> Virtualization SDK Programmer’s<br />

Guide.<br />

1.26.1 Methods<br />

init (self, vm)<br />

x. init (...) initializes x; see x. class . doc for signature<br />

Overrides: object. init extit(inherited documentation)<br />

del (self )<br />

ensure attr (self )<br />

Overrides: prlsdkapi.VmObjEmulation. ensure attr<br />

engage job(self, job)<br />

check connected(self )<br />

56

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

Saved successfully!

Ooh no, something went wrong!