sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30691
[Question #262773]: Compensate of Lag while copy/paste
New question #262773 on Sikuli:
https://answers.launchpad.net/sikuli/+question/262773
I am doing some excel automation using my script and i have a loop in which i go from row1->row2---- and so on..
I copy the value in each cell and assign it to a variable every time.
The problem is that sometimes there is system lag and because of which it does not copy the value.
Whereas If i use type,it automatically compensates for the lag and types without missing a single letter.
Is there something that i am doing wrong.
Example code:
for i in range(len(self.validdate)):
wait(1)
type("c",Key.CTRL)
wait(2)
dates = Env.getClipboard()
sheetdate = dates[0:dates.find("-")]
print sheetdate
if (int(sheetdate) == int(todaysdate.day)):
break
else:
type(Key.RIGHT)
Env.setClipboard("")
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.