victor@2: params = sys.argv[1:] victor@2: path=params[0] victor@2: strIMGs="" victor@2: victor@2: click("1415626157985.png") victor@2: wait("1415626436439.png",FOREVER) victor@2: type("o", KeyModifier.CTRL) victor@2: wait("1415791940762.png",FOREVER) victor@2: #click("1415882981586.png") victor@2: click(Pattern("1415963511508.png").targetOffset(45,14)) victor@2: type(Key.BACKSPACE) victor@2: paste(path) victor@2: click("2014-11-13_12-53-25.png") victor@2: click("1415791956757.png") victor@2: victor@2: for i in range(1,len(params)): victor@2: strIMGs=strIMGs+" \""+params[i]+"\"" victor@2: strInput=strIMGs victor@2: strInput=strInput.replace("/","\\") victor@2: victor@2: paste(strInput) victor@2: click("1415791980822.png") victor@2: victor@2: wait("1415628223695.png",FOREVER) victor@2: victor@2: if(len(params)==3): victor@2: wait(Pattern("1415785439675.png").exact(),FOREVER) victor@2: if(len(params)==4): victor@2: wait(Pattern("1415785928359.png").exact(),FOREVER) victor@2: if(len(params)==5): victor@2: wait(Pattern("1415786066894.png").exact(),FOREVER) victor@2: if(len(params)==6): victor@2: wait(Pattern("1415876625654.png").exact(),FOREVER) victor@2: if(len(params)==7): victor@2: wait(Pattern("1415876704875.png").exact(),FOREVER) victor@2: if(len(params)==8): victor@2: wait(Pattern("1415876822838.png").exact(),FOREVER) victor@2: if(len(params)==9): victor@2: wait(Pattern("1415876912038.png").exact(),FOREVER) victor@2: if(len(params)==10): victor@2: wait(Pattern("1416238736460.png").exact(),FOREVER) victor@2: if(len(params)==11): victor@2: wait(Pattern("1416238784250.png").exact(),FOREVER) victor@2: if(len(params)==12): victor@2: wait(Pattern("1416239106139.png").exact(),FOREVER) victor@2: if(len(params)==13): victor@2: wait(Pattern("1416239184735.png").exact(),FOREVER) victor@2: if(len(params)==14): victor@2: wait(Pattern("1417434097757.png").exact(),FOREVER) victor@2: victor@2: victor@2: click("1415628257531.png") victor@2: wait("1415792044614.png",FOREVER) victor@2: type(Key.BACKSPACE) victor@2: click("1415792076797.png") victor@2: strOUT=path+"PS.xml" victor@2: strOUT=strOUT.replace("/","\\") victor@2: paste(strOUT) victor@2: click("1415792095379.png") victor@2: if exists("1415700984115.png"): victor@2: click("1415700984115.png") victor@2: if exists("cerrar.png"): victor@2: click("cerrar.png") victor@2: victor@2: