sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #53817
[Question #687586]: Name capture
New question #687586 on Sikuli:
https://answers.launchpad.net/sikuli/+question/687586
I am using sikuli in eclipse. When printing and saving, sikuli is inserting its own text in the file name. Would you like to know how to remove this?
This is my code:
Calendar c = Calendar.getInstance ();
String dir = "C: \\ Sikuli \\ evidence \\" + class + c.get (Calendar.DAY_OF_MONTH) + c.get (Calendar.MONTH - 1)
+ c.get (Calendar.YEAR) + c.get (Calendar.HOUR_OF_DAY);
File directory = new File (dir);
s.capture (s) .save (dir, "sikuli" + c.get (Calendar.HOUR_OF_DAY) + c.get (Calendar.MINUTE) + c.get (Calendar.SECOND) + ".png");
the file goes with this name:
sikuli151134.png-1577466694247.png
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.