← Back to team overview

sikuli-driver team mailing list archive

[Question #191485]: Repeat my code

 

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

Hi

I have a code that I want to be repeated with the latest version x1.0-rc3:

click("l.png")
type(Key.TAB,KeyModifier.CTRL)
wait(2)

I've read thru https://answers.launchpad.net/sikuli/+faq/1437 but can't get my code to keep running.This is what I end up with:

while exists("l.png", 0):
   click getLastMatch()
   if exists("l.png"):
      continue
   wait(1)
click("l.png")
type(Key.TAB,KeyModifier.CTRL)
wait(2)  

It stops at click getLastMatch()...

Please help or is there another way to do this?

Thanks
JC

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