Re: [Sikuli-driver] [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. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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: Answered = Open eduardobedoya is still having a problem: Thanks Raiman So there is not other way to do this right? I thought I read something about JAVA script to get clipboard changes, that could be used in Sikuli PD: yes RaiMan, Im having a pain finding logic names to variables eg. matches allMatches sortedAllMatches etc Thanks. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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 RaiMan proposed the following answer: correct: BeforeABBYY = App.getClipboard() AfterABBYY = App.getClipboard() while BeforeABBYY == AfterABBYY: AfterABBYY = App.getClipboard() wait -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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 read something about JAVA script to get clipboard changes, not an option currently in Sikuli's clipboard implementation. If you have knowledge in Java programming, then feel free, to add what you want to your Jython scripting. In Jython scripts you have full access to any Java feature available on Java class path. Observe changes on the clipboard is a good idea - I add it to the list for version 2. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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 Linked to bug: #1447982 https://bugs.launchpad.net/bugs/1447982 [request] scripting: want to get notified about clipboard changes (like with the observe feature) -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #265794]: Is there a way to tell Sikuli to wait until clipboard context change?
New question #265794 on Sikuli: https://answers.launchpad.net/sikuli/+question/265794 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(); 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, but it also involve 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. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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 there is not any other better way (avoiding Busy Loop) to do this using either Sikuli clipboard operators or JAVA script. THanks Advanced. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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 = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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: Solved = Open eduardobedoya is still having a problem: RainMan please tell me how could I say wait until clipboard is different that None I have do this... emp = App.setClipboard() # so if I print emp the Message says None Then I would like to... While emp == None: full = App.getClipboard(); Is this right? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp