← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #203493]: Is it possible to take screen shot during program execution

 

Question #203493 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203493

    Status: Open => Answered

RaiMan proposed the following answer:
# this will make a shot and store it in the folder, where the script is saved
import shutil
import os
dir = os.path.dirname(getBundlePath()) # the folder, where your script is stored
img = capture() # snapshots the screen
shutil.move(img, os.path.join(dir, "shot.png")) # to make it persistent

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.