sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37224
[Question #288564]: To take suggestion about small script
New question #288564 on Sikuli:
https://answers.launchpad.net/sikuli/+question/288564
Hi,
I am working on small automation using sikulix.
Here following is the code I have written for taking value from excel sheet and checking its existence in notepad++ . Its working fine but no time saving it is taking same time as manual. Could you please any one suggest better method to mplement... :)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
import xlrd
def open_file(path):
c = 0;
book = xlrd.open_workbook(path)
first_sheet = book.sheet_by_index(0)
for i in range(0,3):
cell = first_sheet.cell(i,0).value
openApp("C:/Program Files/Notepad++/notepad++")
wait(2)
type('f', Key.CTRL)
wait(2)
type(cell)
click("1457172750637.png")
if exists(Pattern("1457176000444.png").targetOffset(-11,1)):
print "found"
c = c+1
print cell
else:
print "not found"
print c
path = "C:/auto.xlsx"
open_file(path)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.