Comment 9 for bug 802690

Revision history for this message
RaiMan (raimund-hocke) wrote :

save the following script to somewhere.sikuli

import os
import shutil
dir = getBundlePath()
img = capture()
shutil.mv(img, os.path.join(dir, "captured.png")

and run it from commandline using
java -jar path-to-sikuli-script.jar path-to-your-somewhere.sikuli

after you have arranged the critical screen situation.

You should be asked to capture. Capture the dialog no matter what it looks like. After the script has terminated, you should find the captured image as captured.png in the folder somewhere.sikuli.

Talk about your experiences ;-)