Re: [Sikuli-driver] [Question #235864]: Exist function in sikuli java API

2013-11-20 Thread tjonnyc
Question #235864 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/235864 tjonnyc posted a new comment: I usually use the 2-part if-exists / if-not-exists method: def FunctionName(n): Region(500,300,125,40) if exists(Condition.png): {do something

Re: [Sikuli-driver] [Question #238124]: Need sample of script with imported sub-scripts

2013-11-20 Thread tjonnyc
Question #238124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/238124 Status: Solved = Open tjonnyc is still having a problem: One more question, if you don't mind... Can sub-scripts hold constants without actions? I.e. can I have a bunch of SomeItem = Location(1000,500

[Sikuli-driver] [Question #239537]: How to simulate GoTo - end subroutine if condition met?

2013-11-20 Thread tjonnyc
New question #239537 on Sikuli: https://answers.launchpad.net/sikuli/+question/239537 How would you make a script go to the end of the sequence, if a certain condition is met? Here's what I have now: def SubRoutine1(n): {some code} ... def SubRoutine20(n): {some more code} ... def

Re: [Sikuli-driver] [Question #238124]: Need sample of script with imported sub-scripts

2013-11-19 Thread tjonnyc
Question #238124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/238124 Status: Answered = Solved tjonnyc confirmed that the question is solved: Thanks, I got it to work! Brilliant! -- You received this question notification because you are a member of Sikuli Drivers

Re: [Sikuli-driver] [Question #238712]: [RC3] Attempting to save script - pile of error messages

2013-11-19 Thread tjonnyc
Question #238712 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/238712 Status: Answered = Solved tjonnyc confirmed that the question is solved: OK, going to try upgrading to the latest version. BTW, as I just found out, the issue is not the length of the script - had

Re: [Sikuli-driver] [Question #238124]: Need sample of script with imported sub-scripts

2013-11-05 Thread tjonnyc
Question #238124 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/238124 Status: Answered = Open tjonnyc is still having a problem: ...whoa. That's a bit more complicated than I expected, but I'll play around with it. To possibly simplify the situation: I don't need

[Sikuli-driver] [Question #238712]: Attempting to save script - pile of error messages

2013-11-05 Thread tjonnyc
New question #238712 on Sikuli: https://answers.launchpad.net/sikuli/+question/238712 Upon trying to save a (very long, 1300 lines) script, I get the following: ava.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

[Sikuli-driver] [Question #238124]: Need sample of script with imported sub-scripts

2013-10-26 Thread tjonnyc
New question #238124 on Sikuli: https://answers.launchpad.net/sikuli/+question/238124 I'm trying to combine several scripts into 1, but it's not working right. Could someone provide an example of a Sikuli script that includes other scripts ** imported from files **, so I can reverse-engineer

Re: [Sikuli-driver] [Question #236636]: OCR fails silently (no error message)

2013-10-09 Thread tjonnyc
Question #236636 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236636 Status: Needs information = Open tjonnyc gave more information on the question: If I run that line, all I get is ## -- You received this question notification because you are a member of Sikuli

[Sikuli-driver] [Question #237084]: How to prompt a user input answer into a variable?

2013-10-09 Thread tjonnyc
New question #237084 on Sikuli: https://answers.launchpad.net/sikuli/+question/237084 I would like to prompt the user for a number, then use that number to run a particular loop a specific number of times. 1.) Pop up a question: How many times to run? 2.) Read input - integer from 1 to 9.

Re: [Sikuli-driver] [Question #236636]: OCR fails silently (no error message)

2013-10-01 Thread tjonnyc
Question #236636 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236636 Status: Answered = Open tjonnyc is still having a problem: Tried it, still nothing. 1.) Other OCR programs have no problem recognizing the text (took screenshot, MS Office OCR and CorelDraw OCR

[Sikuli-driver] [Question #236636]: OCR fails silently (no error message)

2013-09-30 Thread tjonnyc
New question #236636 on Sikuli: https://answers.launchpad.net/sikuli/+question/236636 I'm trying this code, which I got from the answer to another thread (marked as solved): myReg= Region(100,100,500,600) myReg.highlight(2) myText = myReg.text() print myText There is definitely text there, but

[Sikuli-driver] [Question #236513]: Display variable value (loop counter) on-screen during loop?

2013-09-28 Thread tjonnyc
New question #236513 on Sikuli: https://answers.launchpad.net/sikuli/+question/236513 Let's say I have a counter loop: - for a in range(100): {do something} {do something else} I would like to display a pop-up /

[Sikuli-driver] [Question #236516]: The right way to script waiting for events in multiple browser tabs?

2013-09-28 Thread tjonnyc
New question #236516 on Sikuli: https://answers.launchpad.net/sikuli/+question/236516 I have a small script that performs some actions in a web-based application. A cornerstone of this script is waiting for an event complete message, and proceeding to the next step. Here's the simplified code:

Re: [Sikuli-driver] [Question #236513]: Display variable value (loop counter) on-screen during loop?

2013-09-28 Thread tjonnyc
Question #236513 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236513 Status: Answered = Open tjonnyc is still having a problem: There is plenty of screen space to hold a display/popup/overlay, without interfering with the web app. The app is 1000x700, and my monitor

Re: [Sikuli-driver] [Question #236513]: Display variable value (loop counter) on-screen during loop?

2013-09-28 Thread tjonnyc
Question #236513 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236513 Status: Answered = Open tjonnyc is still having a problem: OK, that could work. But a more flexible / reliable solution would be pasting the counter value into Google Docs - since I could access it from

Re: [Sikuli-driver] [Question #236516]: The right way to script waiting for events in multiple browser tabs?

2013-09-28 Thread tjonnyc
Question #236516 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/236516 Status: Needs information = Open tjonnyc gave more information on the question: The browser window is open visible. Each tab can be switched to at any time. The app is running concurrently, and may

Re: [Sikuli-driver] [Question #235487]: Recognize text (OCR) and paste it to a document?

2013-09-27 Thread tjonnyc
Question #235487 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/235487 Status: Answered = Open tjonnyc is still having a problem: The code: reg = selectRegion(Region(1364,281,75,18)) print reg.text() Produces the following error: [info] Sikuli vision engine loaded

Re: [Sikuli-driver] [Question #235487]: Recognize text (OCR) and paste it to a document?

2013-09-11 Thread tjonnyc
Question #235487 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/235487 Status: Answered = Open tjonnyc is still having a problem: Thank you for the answer. However, it's not working out. var_name = myRegion.text() Fails with NameError: name 'myRegion' is not defined

Re: [Sikuli-driver] [Question #235487]: Recognize text (OCR) and paste it to a document?

2013-09-11 Thread tjonnyc
Question #235487 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/235487 Status: Answered = Open tjonnyc is still having a problem: 1.) OK, that got rid of the errors on recognizing the text... The last issue is, what's the correct syntax for pasting the text? 2.) Re

[Sikuli-driver] [Question #235487]: Recognize text (OCR) and paste it to a document?

2013-09-10 Thread tjonnyc
New question #235487 on Sikuli: https://answers.launchpad.net/sikuli/+question/235487 Here's what I would like to accomplish: 1.) Select a region on the screen. 2.) Do OCR on the text within that region. 3.) Switch to a different tab in the browser. 4.) Click on a specific location. 5.) Paste

Re: [Sikuli-driver] [Question #234579]: How to increment or combine Sikuli variables?

2013-08-28 Thread tjonnyc
Question #234579 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/234579 Status: Answered = Solved tjonnyc confirmed that the question is solved: Thank you SO much! It worked PERFECTLY! -- You received this question notification because you are a member of Sikuli Drivers

[Sikuli-driver] [Question #234579]: How to increment or combine Sikuli variables?

2013-08-24 Thread tjonnyc
New question #234579 on Sikuli: https://answers.launchpad.net/sikuli/+question/234579 My script needs to log in to several accounts, each in a separate browser tab. I already took care of opening the browser, opening multiple tabs, and starting the web app in each tab. Now, I would like to use