sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34107
Re: [Question #270082]: Calling a data from TXT file
Question #270082 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270082
Anurag gave more information on the question:
see my script, and please help me!!!!!!
file = open("c:\\temp1\\t.txt", "r")
ord = file.read()
file.close()
list = ord.splitlines()
for x in list:
plan = "AM15.019001-"
#find("SprintCapaci.png")
h = find("ToolBoxSearc.png")
r = h.find("Search.png")
click(r)
wait(4)
click(Pattern("CircuitID.png").targetOffset(-64,8))
wait(2)
type(plan)
type(x)
type("\n")
wait(10)
type( u"\ue002")
type(u"\ue002")
wait(1)
j=find("CircuitResul.png")
hover(click(Pattern("Select.png").targetOffset(0,1)))
wait(4)
lines = open("c:\\temp1\\th.txt").readlines()
for line in lines:
fields = line.split()
circuit = fields[1]
ecckt = fields[3]
comment = fields[5]
#print circuit
# print ecckt
# print comment
click(Pattern("ECCKT.png").targetOffset(-73,10))
wait(1)
type(ecckt)
find("AddNote_.png")
doubleClick(Pattern("AddNote_.png").targetOffset(-411,19))
wait(1)
type(comment)
wait(2)
type("\t")
type( u"\ue004")
wait(2)
t=click(Pattern("CircuitDetai.png").targetOffset(-109,17))
click(t)
wait(3)
type("a", KEY_CTRL)
type(u"\ue006")
wait(1)
type(circuit)
click(Pattern("POPPopisNewl.png").targetOffset(-174,-17))
wait(3)
type( u"\ue005")
wait(1)
click(Pattern("SaveCircuitD-1.png").targetOffset(-128,1))
wait(2)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.