← Back to team overview

sikuli-driver team mailing list archive

[Question #340219]: How to use Alt-PrintScreen keys on capture(Screen()) command?

 

New question #340219 on Sikuli:
https://answers.launchpad.net/sikuli/+question/340219

Hey guys, I have this function to take screenshots:

def captureImage():                                                                                             
    captureScreenshot = shutil.move(capture(Screen()), screenshotsDirectory + 'NameOfImg_' + (str(int(numPrint))) + '.png')

But it takes screenshot of the whole screen. I want to capture only a window, using something similar as Alt+PrintScreen keys.

Can I use something like this on (capture(Screen()) command?

Regards,
Carol Ciola


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.