Mercurial > hg > multiomr
view sikuli/SE.sikuli/SE.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("1415716688669.png") wait("1415716721174.png",FOREVER) click("1415716758693.png") click("DropDown.png") wait("1415716942199.png",FOREVER) click("1415716964607.png") wait("1415792167505.png",FOREVER) click(Pattern("1415963853362.png").targetOffset(45,15)) type(Key.BACKSPACE) paste(path) click("2014-11-13_13-34-35.png") click("1415792179506.png") for i in range(1,len(params)): strIMGs=strIMGs+" \""+params[i]+"\"" strInput=strIMGs strInput=strInput.replace("/","\\") paste(strInput) click("1415792207078.png") rightClick("1415717208007.png") click("2014-11-12_11-58-32.png") sleep(1) type(Key.BACKSPACE) click("1415717913108.png") paste(path[:-1]) click("1415717515734.png") wait("1415718431424.png",FOREVER) click("1415792424959.png") click("1415718524045.png") wait("1415792444947.png",FOREVER) type(Key.BACKSPACE) click("1415792490785.png") newPath=path.replace("/","\\") paste(newPath+"AllPages.mro") click("1415792510149.png") if exists("1417614329432.png"): click("1417614361971.png") click(Pattern("1415718695577.png").exact()) wait("1415792536736.png",FOREVER) type(Key.BACKSPACE) click("1415792587415.png") strOUT=path+"SE.xml" strOUT=strOUT.replace("/","\\") paste(strOUT) click("1415792640839.png") if exists("1415792786165.png"): click("1415792803049.png") if exists("1415700984115.png"): click("1415700984115.png") if exists("cerrar.png"): click("cerrar.png")