Python SDK: async_capture_scaled_screen_region_to_buffer results in PRL_ERR_NO_DATA

MikhailI1

Bit poster
I am trying to capture a screen of a running Parallels VM, in Python.
An SDK sample program which captures the screen to a file runs OK, but when I try to capture the screen in a buffer the job results in
PRL_ERR_NO_DATA error.

Working:
Code:
vm_io.sync_capture_screen_region_to_file(VM, current_screen, consts.PIF_BMP)
Not working:
Code:
    job = vm_io.async_capture_scaled_screen_region_to_buffer(VM, \
        format=consts.PIF_RAW, \
        x=0, y=0, width=100, height=50 )
    wait_job = job.wait()
    result = job.get_result()
    print result
    if not result: print job.get_error()
which results in:
Code:
None
Error: SDK error: 0x80000014: PRL_ERR_NO_DATA PRL_ERR_NO_DATA
Parallels Desktop Home Version 16.0.1 (48919)
SDK just downloaded today
 
This is still an issue with Parallels Desktop for Mac Pro Edition 17.1.1. SDK just downloaded today. The result is always PRL_ERR_NO_DATA no matter what the parameters are.
 
Back
Top