diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sikuli/CP.sikuli/CP.py	Mon May 04 22:56:18 2015 +0200
@@ -0,0 +1,37 @@
+params = sys.argv[1:]
+path=params[0]
+strIMGs=""
+
+click("1415710175004.png")
+wait("1415710207538.png",FOREVER)
+click("1415710242258.png")
+wait("1415710292754.png",FOREVER)
+type(Key.BACKSPACE)
+
+click("1415791421283.png")
+strPath=path.replace("/","\\")
+paste(strPath[:-1])
+click("1415791723329.png")
+sleep(1)
+type(Key.BACKSPACE)
+for i in range(1,len(params)):
+    strIMGs=strIMGs+" \""+params[i]+"\""
+strInput=strIMGs
+strInput=strInput.replace("/","\\")
+paste(strInput)
+click("1415791723329.png")
+click("1415710897800.png")
+wait(Pattern("1415711761225.png").similar(0.90),FOREVER)
+click("1415711065949.png")
+wait("1415711940063.png",FOREVER)
+wait(1)
+type(Key.BACKSPACE)
+click("1415791774505.png")
+strOUT=path+"CP.xml"
+strOUT=strOUT.replace("/","\\")
+paste(strOUT)
+click("1415791801451.png")
+if exists("1415700984115.png"):
+    click("1415700984115.png")
+if exists("cerrar.png"):
+    click("cerrar.png")
\ No newline at end of file