sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32031
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
Description changed to:
I am using ABBYY Screenshot Reader to OCR capture some text in a flash website,
ABBYY automatically save the text in the clipboard, it take some time do that, sometimes is 3 secs, sometimes is 9 secs.
I need to repeat this task several times, is there a way to detect when it has finished to OCR Process and creates the new clipboard content?
May I need to create a Busy Loop?
something like...
BeforeABBYY = App.getClipboard();
AfterABBYY = App.getClipboard();
While 'BeforeABBYY' == 'AfterABBYY':
AfterABBYY = App.getClipboard();
Im right? please tell me if there is any other way to achieve this,
sorry if it is python syntax, I just would like to know if is not any better way (avoiding Busy Loop) to do this using Sikuli clipboard operators.
THanks Advanced.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.