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

Hi folks, I recently got Sikuli X 1.0 rc1 working from Java, thanks for your 
good documentation, RaiMan!  Now I'm trying to use a new feature of rc1.  The 
changes for rc1 state, "Screenshot naming - screenshots can be named 
automatically with timestamps or the text in them as well as manually with 
prompted filenames."  But I don't see anywhere how to do this.  Here's my code:

Screen s = new Screen();
ScreenImage si = s.capture();
System.out.println( "Image captured: " + si.getFilename() );

The only problem is that it stores the captured .png file in a 
/var/folders/.../-Tmp-/ directory that is removed when the test is finished.  I 
have figured out how to copy the file using standard Java File api calls, so I 
can copy the image to a place and see it when the test is done.  I was just 
wondering how to implement the automatic screenshot naming feature of RC1.  
Thanks.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to