Loop is not working (while, if)
Hi guys,
I'm sure that something trivial like this will make you laugh, but I cannot fix it, even trying for hours:
In this spcipt, the execution stops with this error message:
"[error] script [ 000_ArtWar ] stopped with error in line 13 at column 4
[error] SyntaxError ( "no viable alternative at input 'exists'", )"
This is the script:
Settings.
andAndo = True
def runHotkey(event):
global andando
andando = False
Env.addHotkey(
war = switchApp("Moto G_Play")
while(war.
#for brigar in range(2): #roda 2 vezes
If exists("enon.png"): #ERROR MESSAGE POINTS TO HERE
click(
wait("
click(
wait("
click("tien.png")
If brigar = 3
wait(
click(
wait(
click(
brigar += 1
I've tried to change "exists" for "find", but I got same error.
Any tip or clue?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ricardo Luzini
- Solved:
- Last query:
- Last reply: