sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36186
[Question #280248]: 2L - Log and loop
New question #280248 on Sikuli:
https://answers.launchpad.net/sikuli/+question/280248
Hi,
I am new in using Sikuli and for now I like it.
I have some project to finish with no strict deadline but rather sooner then later. Like always I had little problems...
1) For getting log message I use:
Settings.ActionLogs = True
Settings.InfoLogs = True
Settings.DebugLogs = True
Settings.LogTime = True
Debug.setLogFile("C:\Users\xxyyxxyy\SikuliX.sikuli\\Sikuli.log")
But it seems to me that first 2, Action and Info does not participate in my log file... Probably I didn't use them correctly... Maybe I'm doing all wrong but the thing is I wanna have as much as possible information about simulation steps and problem that maybe can occur.
2) I wanna have (let's say) 7 string values stored in field and then I wanna create loop that goes through all that values for unlimited number of times...
So I have idea but I don't have realization. I read many of your answers to similar problems but don't know to implement them. In few lines above I will try to present an idea, code is from head not following python syntax because I don't know her.
myList = (Str1, Str2, Str3, Str4, Str5, Str6, Str7)
while True:
for entry in myList #for every element of myList
type(Key.ENTER) #press Enter
while not exists(img): #this enters program options... while not exists waits for img error to appear... or timeout of 30 min
type(Key.TAB, KeyModifier.CTRL)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.