← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #230737]: can a handler call a function with parameters?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Why not use the Sikuli features:

- for use with RC3:
import shutil
imgFile  = capture(SCREEN)
shutil.move(imgFile, "path to my-location/name-of-image.png")

- for use with 1.0.0
capture(SCREEN).getFile("path to your image store", "image-name.png")

If you need the screen image further:
shotFile = capture(SCREEN).getFile("path to your image store", "image-name.png")

both store a "PrintScreen" image to the given folder with the given
filename.

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