Mercurial > hg > multiomr
view sikuli/SS.sikuli/SS.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 source
params = sys.argv[1:] path=params[0] strIMGs="" click("1415701611441.png") wait("1415701865784.png",FOREVER) click("1415701911562.png") wait("1415701967254.png",FOREVER) click("1415702019016.png") wait("1415792857317.png",FOREVER) click(Pattern("1415963913666.png").targetOffset(47,13)) #click("1415885604725.png") type(Key.BACKSPACE) paste(path) click("2014-11-13_13-34-35.png") click("1415792869010.png") for i in range(1,len(params)): strIMGs=strIMGs+" \""+params[i]+"\"" strInput=strIMGs strInput=strInput.replace("/","\\") paste(strInput) click("1415792905305.png") click("1415702225757.png") wait("1415792946298.png",FOREVER) wait(1) type(Key.BACKSPACE) click("1415792965001.png") strOUT=path+"SS.xml" strOUT=strOUT.replace("/","\\") paste(strOUT) click("1415798023757.png") click("select.png") click("1415793010197.png") wait(1) if exists("1416922791607.png"): wait(1) if exists("1416922791607.png"): wait(1) if exists("1416922791607.png"): wait(1) if exists("1415700984115.png"): click("1415700984115.png") if exists("cerrar.png"): click("cerrar.png") if exists("1415798271832.png"): click("1415706040951.png")