Mercurial > hg > multiomr
diff sikuli/PS.sikuli/PS.py @ 2:46fb79167a61 tip
Main Code
author | Victor Padilla <victor.padilla.mc@gmail.com> |
---|---|
date | Mon, 04 May 2015 22:56:18 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sikuli/PS.sikuli/PS.py Mon May 04 22:56:18 2015 +0200 @@ -0,0 +1,65 @@ +params = sys.argv[1:] +path=params[0] +strIMGs="" + +click("1415626157985.png") +wait("1415626436439.png",FOREVER) +type("o", KeyModifier.CTRL) +wait("1415791940762.png",FOREVER) +#click("1415882981586.png") +click(Pattern("1415963511508.png").targetOffset(45,14)) +type(Key.BACKSPACE) +paste(path) +click("2014-11-13_12-53-25.png") +click("1415791956757.png") + +for i in range(1,len(params)): + strIMGs=strIMGs+" \""+params[i]+"\"" +strInput=strIMGs +strInput=strInput.replace("/","\\") + +paste(strInput) +click("1415791980822.png") + +wait("1415628223695.png",FOREVER) + +if(len(params)==3): + wait(Pattern("1415785439675.png").exact(),FOREVER) +if(len(params)==4): + wait(Pattern("1415785928359.png").exact(),FOREVER) +if(len(params)==5): + wait(Pattern("1415786066894.png").exact(),FOREVER) +if(len(params)==6): + wait(Pattern("1415876625654.png").exact(),FOREVER) +if(len(params)==7): + wait(Pattern("1415876704875.png").exact(),FOREVER) +if(len(params)==8): + wait(Pattern("1415876822838.png").exact(),FOREVER) +if(len(params)==9): + wait(Pattern("1415876912038.png").exact(),FOREVER) +if(len(params)==10): + wait(Pattern("1416238736460.png").exact(),FOREVER) +if(len(params)==11): + wait(Pattern("1416238784250.png").exact(),FOREVER) +if(len(params)==12): + wait(Pattern("1416239106139.png").exact(),FOREVER) +if(len(params)==13): + wait(Pattern("1416239184735.png").exact(),FOREVER) +if(len(params)==14): + wait(Pattern("1417434097757.png").exact(),FOREVER) + + +click("1415628257531.png") +wait("1415792044614.png",FOREVER) +type(Key.BACKSPACE) +click("1415792076797.png") +strOUT=path+"PS.xml" +strOUT=strOUT.replace("/","\\") +paste(strOUT) +click("1415792095379.png") +if exists("1415700984115.png"): + click("1415700984115.png") +if exists("cerrar.png"): + click("cerrar.png") + +