Mercurial > hg > multiomr
comparison sikuli/CP.sikuli/CP.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 |
comparison
equal
deleted
inserted
replaced
1:0f7f611deca4 | 2:46fb79167a61 |
---|---|
1 params = sys.argv[1:] | |
2 path=params[0] | |
3 strIMGs="" | |
4 | |
5 click("1415710175004.png") | |
6 wait("1415710207538.png",FOREVER) | |
7 click("1415710242258.png") | |
8 wait("1415710292754.png",FOREVER) | |
9 type(Key.BACKSPACE) | |
10 | |
11 click("1415791421283.png") | |
12 strPath=path.replace("/","\\") | |
13 paste(strPath[:-1]) | |
14 click("1415791723329.png") | |
15 sleep(1) | |
16 type(Key.BACKSPACE) | |
17 for i in range(1,len(params)): | |
18 strIMGs=strIMGs+" \""+params[i]+"\"" | |
19 strInput=strIMGs | |
20 strInput=strInput.replace("/","\\") | |
21 paste(strInput) | |
22 click("1415791723329.png") | |
23 click("1415710897800.png") | |
24 wait(Pattern("1415711761225.png").similar(0.90),FOREVER) | |
25 click("1415711065949.png") | |
26 wait("1415711940063.png",FOREVER) | |
27 wait(1) | |
28 type(Key.BACKSPACE) | |
29 click("1415791774505.png") | |
30 strOUT=path+"CP.xml" | |
31 strOUT=strOUT.replace("/","\\") | |
32 paste(strOUT) | |
33 click("1415791801451.png") | |
34 if exists("1415700984115.png"): | |
35 click("1415700984115.png") | |
36 if exists("cerrar.png"): | |
37 click("cerrar.png") |