05.08.2013 Views

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Package prlsdkapi Class VmDisplayDev<br />

send keys event(self, action keys pairs, action time wait=-1)<br />

Send a set of keyboard key events to the virtual machine.<br />

Parameters<br />

action keys pairs: A tuple containing action/key pairs (action,<br />

key codes). The key codes item is also a tuple<br />

containing a list of key codes. See<br />

consts.ScanCodesList for available codes or<br />

start <strong>Python</strong> from the command line, import<br />

the prlsdkapi module, and issue the print<br />

prlsdkapi.prlsdk.consts.ScanCodesList<br />

statement. See consts.PKE xxx for available<br />

actions.<br />

action time wait: A time delay between actions specified in the<br />

action keys pairs parameter (in milliseconds).<br />

send key event(self, action, keys, action time wait=0)<br />

Send a set of keyboard key events to the virtual machine.<br />

Parameters<br />

action: Action. See consts.PKE xxx for available<br />

actions.<br />

keys: A tuple containing a list of key codes. See<br />

consts.ScanCodesList for available codes.<br />

action time wait: A time delay imposed on key input after the<br />

event execution (in milliseconds).<br />

Inherited from prlsdkapi.VmObjEmulation(Section 1.24)<br />

call vm(), inderect self(), safe call()<br />

Inherited from object<br />

delattr (), getattribute (), hash (), new (), reduce (), reduce ex (),<br />

repr (), setattr (), str ()<br />

1.26.2 Properties<br />

Name Description<br />

sliding mouse enabled Determines if sliding mouse is enabled. True -<br />

enabled; False - disabled.<br />

screen size The virtual machine screen size (width, height,<br />

depth).<br />

59<br />

continued on next page

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

Saved successfully!

Ooh no, something went wrong!