← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #225014]: sequential numbers

 

Question #225014 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/225014

    Status: Answered => Open

winarto is still having a problem:
sorry for being idiot but im still confused, i will elaborate more, lets
say the script is:

type("avengers+1@xxxxxxxxx") ------------------> this is the sequential input
click(wait("Movingonestc.png",FOREVER)) ------------> this until below is the identical steps to go through
click(wait("Youcertainly.png",FOREVER))
hover(wait("SLnIt.png",FOREVER))
hover(wait("SLnIt.png",FOREVER))
hover(wait("SLnIt.png",FOREVER))
hover(wait("SLnIt.png",FOREVER))
hover(wait("SLnIt.png",FOREVER))
click(wait("SLnIt.png",FOREVER))
click(wait("Letstakethis.png",FOREVER))
hover(wait("LnLL4.png",FOREVER))
hover(wait("LnLL4.png",FOREVER))
hover(wait("LnLL4.png",FOREVER))
hover(wait("LnLL4.png",FOREVER))
hover(wait("LnLL4.png",FOREVER))
click(wait("LnLL4.png",FOREVER))
click(wait("ldontbelieve.png",FOREVER))
hover(wait("Ln.png",FOREVER))

what to do raiman?

def avengers(n):
     type("avengers"+str(n))
     click(wait("Movingonestc.png",FOREVER))
     click(wait("Youcertainly.png",FOREVER))
     hover(wait("SLnIt.png",FOREVER))
     hover(wait("SLnIt.png",FOREVER))
     hover(wait("SLnIt.png",FOREVER))

this will make them self type avengers1, 2, 3, etc? and i dont have to
repeat the identical scripts?

many thanks

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