sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17912
[Question #228417]: save file - type the count value as file name
New question #228417 on Sikuli:
https://answers.launchpad.net/sikuli/+question/228417
Hi everyone,
I want to save file with filename from loop count
ex:
test1.png
test2.png
test3.png
my codes (not working):
while exists("other.PNG"):
count = 1
def Region_getother():
reg = Region(551,325,499,342)
reg.highlight(2)
click("download.PNG") #After clicking "download.png", the save file window will prompt out
click("desktop.PNG") #select "desktop" in order to save the file ar desktop
type("test"+"str(count)") #type the filename, ex: test1, test2... according to the count
count += 1
Kindly help......
I think my type statement is wrong but i have no idea how to embed count value to filename...
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.