comparison 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
comparison
equal deleted inserted replaced
1:0f7f611deca4 2:46fb79167a61
1 params = sys.argv[1:]
2 path=params[0]
3 strIMGs=""
4
5 click("1415626157985.png")
6 wait("1415626436439.png",FOREVER)
7 type("o", KeyModifier.CTRL)
8 wait("1415791940762.png",FOREVER)
9 #click("1415882981586.png")
10 click(Pattern("1415963511508.png").targetOffset(45,14))
11 type(Key.BACKSPACE)
12 paste(path)
13 click("2014-11-13_12-53-25.png")
14 click("1415791956757.png")
15
16 for i in range(1,len(params)):
17 strIMGs=strIMGs+" \""+params[i]+"\""
18 strInput=strIMGs
19 strInput=strInput.replace("/","\\")
20
21 paste(strInput)
22 click("1415791980822.png")
23
24 wait("1415628223695.png",FOREVER)
25
26 if(len(params)==3):
27 wait(Pattern("1415785439675.png").exact(),FOREVER)
28 if(len(params)==4):
29 wait(Pattern("1415785928359.png").exact(),FOREVER)
30 if(len(params)==5):
31 wait(Pattern("1415786066894.png").exact(),FOREVER)
32 if(len(params)==6):
33 wait(Pattern("1415876625654.png").exact(),FOREVER)
34 if(len(params)==7):
35 wait(Pattern("1415876704875.png").exact(),FOREVER)
36 if(len(params)==8):
37 wait(Pattern("1415876822838.png").exact(),FOREVER)
38 if(len(params)==9):
39 wait(Pattern("1415876912038.png").exact(),FOREVER)
40 if(len(params)==10):
41 wait(Pattern("1416238736460.png").exact(),FOREVER)
42 if(len(params)==11):
43 wait(Pattern("1416238784250.png").exact(),FOREVER)
44 if(len(params)==12):
45 wait(Pattern("1416239106139.png").exact(),FOREVER)
46 if(len(params)==13):
47 wait(Pattern("1416239184735.png").exact(),FOREVER)
48 if(len(params)==14):
49 wait(Pattern("1417434097757.png").exact(),FOREVER)
50
51
52 click("1415628257531.png")
53 wait("1415792044614.png",FOREVER)
54 type(Key.BACKSPACE)
55 click("1415792076797.png")
56 strOUT=path+"PS.xml"
57 strOUT=strOUT.replace("/","\\")
58 paste(strOUT)
59 click("1415792095379.png")
60 if exists("1415700984115.png"):
61 click("1415700984115.png")
62 if exists("cerrar.png"):
63 click("cerrar.png")
64
65