sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32029
Re: [Question #265794]: Is there a way to tell Sikuli to wait until clipboard context change?
Question #265794 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265794
Status: Open => Answered
RaiMan proposed the following answer:
I would insert a wait, to not make the cpu too busy:
BeforeABBYY = App.getClipboard()
while BeforeABBYY == AfterABBYY:
AfterABBYY = App.getClipboard()
wait(1)
BTW: per convention variables in Python should start with a lowercase
letter, names starting with uppercase should be reserved for lass names
and constants (usually all uppercase)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.