sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11897
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:
sorry, my fault.
But if you want to do more with Sikuli, it might be a good idea, to look
through the docs ;-)
# 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(SCREEN) # 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.