Re: [Sikuli-driver] [Question #162896]: Is there a timeout for onAppear()-like methods? --- use observe()

2011-06-27 Thread Landy
Question #162896 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/162896 Status: Answered => Solved Landy confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Driv

[Sikuli-driver] [Question #162896]: Is there a timeout for onAppear()-like methods?

2011-06-27 Thread Landy
New question #162896 on Sikuli: https://answers.launchpad.net/sikuli/+question/162896 onAppear() methods accepts 2 arguments, the first is PS, the second is handler. I didn't find a way to pass a value of waiting time. Will it wait forever if the observed image never come up? -- You received t

Re: [Sikuli-driver] [Question #160928]: Unable to perform a delete key function for a file rename

2011-06-10 Thread Landy
Question #160928 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/160928 Status: Open => Needs information Landy requested more information: What's the definition of "KEY_DELETE"? type (Key.DELETE, KEY_DELETE + "MyNewFileName") // what actual

[Sikuli-driver] [Bug 794424] Re: Sikuli keeps throwing exception when I try to access every member in os.environ

2011-06-09 Thread Landy
Hi RaiMan Yes, I think it's a IDE related issue. "Are any entries printed, when the exception happens?" Yes, before the exception happens, some entries are printed out. And it stops at different key:value pair when the exception happens. I don't find a regular pattern. I also tried your code,

[Sikuli-driver] [Bug 794424] [NEW] Sikuli keeps throwing exception when I try to access every member in os.environ

2011-06-08 Thread Landy
Public bug reported: My code is quite simple import os d = os.environ for key in d: print key, d[key] When I execute the simple code, Sikuli frequently (2 out of 3 tries) reports exceptions below: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.tex

Re: [Sikuli-driver] [Question #159982]: Why does Sikuli fail with a different remote desktop session?

2011-06-07 Thread Landy
Question #159982 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/159982 Status: Needs information => Solved Landy confirmed that the question is solved: Hi RaiMan Your explanation does make a lot of sense! The Windows XP machine I used has a 4:3 monitor. After I plug a

Re: [Sikuli-driver] [Question #159982]: Why does Sikuli fail with a different remote desktop session?

2011-06-06 Thread Landy
Question #159982 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/159982 Status: Needs information => Open Landy gave more information on the question: Hi RainMan Yes, I've set the display configuration to 'full screen' in both client machine (win7

Re: [Sikuli-driver] [Question #159982]: Why does Sikuli fail with a different remote desktop session?

2011-06-03 Thread Landy
Question #159982 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/159982 Landy gave more information on the question: Hi Tsung-Hsiang 1. "How did it fail?" It throw exception and said "FindFailed: can't find xxx.png". For example, at org.sikuli.scrip

[Sikuli-driver] [Question #159982]: Why does Sikuli fail with a different remote desktop session?

2011-06-02 Thread Landy
New question #159982 on Sikuli: https://answers.launchpad.net/sikuli/+question/159982 I developed a sikuli script in a Windows 7 machine. I access the testing machine via Windows 7 remote desktop. The script runs very well. But if I access the testing machine via Windows XP remote desktop, the ima

Re: [Sikuli-driver] [Question #159965]: Can Sikuli provide a way to control the delay between 2 actions?

2011-06-01 Thread Landy
Question #159965 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/159965 Status: Answered => Solved Landy confirmed that the question is solved: Thank you, Tsung-Hsiang, I'll try waitVanish(). -- You received this question notification because you are a member o

Re: [Sikuli-driver] [Question #159965]: Can Sikuli provide a way to control the delay between 2 actions?

2011-06-01 Thread Landy
Question #159965 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/159965 Landy confirmed that the question is solved: Thanks Tsung-Hsiang Chang, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer

[Sikuli-driver] [Question #159965]: Can Sikuli provide a way to control the delay between 2 actions?

2011-06-01 Thread Landy
New question #159965 on Sikuli: https://answers.launchpad.net/sikuli/+question/159965 I use type(Key.ENTER) to dismiss the child window, then use type(Key.ENTER) again to dismiss the father window. But both child and father window need a delay to disappear completely. I want to add wait(3) betwee

Re: [Sikuli-driver] [Question #158158]: Is there a way to test 'enabled'/'disabled' status of a button?

2011-06-01 Thread Landy
Question #158158 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158158 Landy posted a new comment: @eliteSKL. It looks like a good way. I'll try it out. Thanks. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer co

Re: [Sikuli-driver] [Question #158774]: waitVanish() fails with an assertError

2011-06-01 Thread Landy
Question #158774 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158774 Status: Needs information => Open Landy gave more information on the question: Hi eliteSKL, yes, this exception is caused by a assert statement. When I firstly hit this issue, I think the ass

Re: [Sikuli-driver] [Question #159022]: Sikuli on 64-bit Win7 Crashes?

2011-05-25 Thread Landy
Question #159022 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/159022 Landy posted a new comment: https://bugs.launchpad.net/sikuli/+bug/734682 - X-1.0rc2: IDE: Windows: crashes on capture --- newest JRE and specific grafics equipement (e.g. Intel based) https

Re: [Sikuli-driver] [Question #158928]: Had to restart Sikuli IDE to make code changes work

2011-05-25 Thread Landy
Question #158928 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158928 Status: Answered => Solved Landy confirmed that the question is solved: Thanks Tsung-Hsiang Chang, that solved my question. -- You received this question notification because you are a member

Re: [Sikuli-driver] [Question #158929]: Screen.exists - how to capture an error when not found

2011-05-25 Thread Landy
Question #158929 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158929 Status: Open => Answered Landy proposed the following answer: I use assert not exists() to verify a specific window doesn't display. -- You received this question notification because you are

[Sikuli-driver] [Question #158928]: Had to restart Sikuli IDE to make code changes work

2011-05-24 Thread Landy
New question #158928 on Sikuli: https://answers.launchpad.net/sikuli/+question/158928 Windows 7 Ultimate x64 Sikuli x-1.0rc2 jre 1.6 32 bit I have 2 sikuli scripts (for example, foo.sikuli and bar.sikuli), and foo.sikuli import bar.sikuli to use bar's functions. If I modify foo.sikuli's code and

Re: [Sikuli-driver] [Question #158792]: to store extracted text in a excel document

2011-05-24 Thread Landy
Question #158792 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158792 Status: Open => Answered Landy proposed the following answer: @swethaa, I guess you can use python's csv module to read/write csv file. http://docs.python.org/library/csv.html -- You recei

Re: [Sikuli-driver] [Question #158792]: to store extracted text in a excel document

2011-05-24 Thread Landy
Question #158792 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158792 Status: Open => Needs information Landy requested more information: Excuse me, but I think your question is not related to the Sikuli project? :) -- You received this question notification because

Re: [Sikuli-driver] [Question #158774]: waitVanish() fails with an assertError

2011-05-23 Thread Landy
Question #158774 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158774 Landy posted a new comment: #update# I tried to use wait(60) to replace the waitVanish("Progress-bar.png") The AssertionError still happens. -- You received this question notification becau

[Sikuli-driver] [Question #158774]: waitVanish() fails with an assertError

2011-05-23 Thread Landy
New question #158774 on Sikuli: https://answers.launchpad.net/sikuli/+question/158774 I'm using waitVanish to judge whether a task is finished or not. The code is like: waitVanish("Progress-bar.png") I expect the code will wait until the progress bar is disappeared. But this code always fails wi

Re: [Sikuli-driver] [Question #158158]: Is there a way to test 'enabled'/'disabled' status of a button?

2011-05-19 Thread Landy
Question #158158 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158158 Landy posted a new comment: @ManxBug. Thanks for your suggestion. Yes, I'm using this workaround (click the button then see what happens), but I think it's not as direct as image comparing. F

Re: [Sikuli-driver] [Question #158158]: Is there a way to test 'enabled'/'disabled' status of a button?

2011-05-19 Thread Landy
Question #158158 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158158 Status: Answered => Solved Landy confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Driv

[Sikuli-driver] [Question #158158]: Is there a way to test 'enabled'/'disabled' status?

2011-05-19 Thread Landy
New question #158158 on Sikuli: https://answers.launchpad.net/sikuli/+question/158158 I need to verify a menu item is enabled or disabled. The text is same in both status. The only difference is the text is gray in 'disabled' status. I take snapshots for both status, and write codes as print fi

Re: [Sikuli-driver] [Question #158009]: Sikuli can't distinguish checked and unchecked box.

2011-05-18 Thread Landy
Question #158009 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158009 Landy 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

Re: [Sikuli-driver] [Question #158009]: Sikuli can't distinguish checked and unchecked box.

2011-05-18 Thread Landy
Question #158009 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/158009 Status: Answered => Solved Landy confirmed that the question is solved: Thank you, RaiMan. As you said, both scores are above 0.7: one is 0.72, another is 0.98. So adjusting the similar to 0.9

[Sikuli-driver] [Question #158009]: Sikuli can't distinguish checked and unchecked box.

2011-05-18 Thread Landy
New question #158009 on Sikuli: https://answers.launchpad.net/sikuli/+question/158009 >From this link http://sikuli.org/docx/tutorials/uncheckall/uncheckall.html, it >looks like Sikuli can distinguish checked box and unchecked box. But in my >case, it fails. My environment: Windows 7 x64 Sikuli

Re: [Sikuli-driver] [Question #157716]: with: not working with a Match object - cast to Region

2011-05-17 Thread Landy
Question #157716 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/157716 Landy 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

Re: [Sikuli-driver] [Question #157716]: with: not working with a Match object - cast to Region

2011-05-17 Thread Landy
Question #157716 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/157716 Status: Answered => Solved Landy confirmed that the question is solved: Thank you RaiMan. This solution works! :) -- You received this question notification because you are a member of Sikuli Driv

[Sikuli-driver] [Question #157716]: Is class Match a subclass of class Region?

2011-05-16 Thread Landy
New question #157716 on Sikuli: https://answers.launchpad.net/sikuli/+question/157716 >From this link, >http://sikuli.org/docx/match.html#creating-a-match-getting-attributes, it says >"http://sikuli.org/docx/match.html#creating-a-match-getting-attributes";, Does >it mean that class Match is a

[Sikuli-driver] [Bug 782818] [NEW] Jython 2.5.2: "no attribute 'getEnviron' in module os" reported at Sikuli startup

2011-05-14 Thread Landy
Public bug reported: * worth a try might be a bug in Jython 2.5.2 so going back to Jython 2.5.1 might solve the problem. see comment #4 below -- I've read the instruction - http://sikuli.org/docx/faq/040-other- id

Re: [Sikuli-driver] [Question #155881]: Windows 64-Bit / Eclipse: "no attribute 'getEnviron' in module os" reported at Sikuli startup

2011-05-14 Thread Landy
Question #155881 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/155881 Landy posted a new comment: @Raniero, thanks for your solution. I go back to Jython 2.5.1 and the problem is solved! It might a bug of sikuli. -- You received this question notification because you are a

Re: [Sikuli-driver] [Question #155881]: Windows 64-Bit / Eclipse: "no attribute 'getEnviron' in module os" reported at Sikuli startup

2011-05-14 Thread Landy
Question #155881 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/155881 Linked to bug: #782818 https://bugs.launchpad.net/bugs/782818 "Jython 2.5.2: "no attribute 'getEnviron' in module os" reported at Sikuli startup" -- You received this question notification beca

Re: [Sikuli-driver] [Question #155881]: Windows 64-Bit / Eclipse: "no attribute 'getEnviron' in module os" reported at Sikuli startup

2011-05-14 Thread Landy
Question #155881 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/155881 Status: Answered => Solved Landy confirmed that the question is solved: Thanks Raniero Virgilio, that solved my question. -- You received this question notification because you are a member of Sik

Re: [Sikuli-driver] [Question #155881]: Windows 64-Bit / Eclipse: "no attribute 'getEnviron' in module os" reported at Sikuli startup

2011-05-04 Thread Landy
Question #155881 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/155881 Status: Needs information => Open Landy gave more information on the question: @Railman 1. Yes, I run the test code from command line (plain interactive Jython). P.S.: looks like the sample test c

[Sikuli-driver] [Question #155881]: "no attribute 'getEnviron'" reported when trying execute a script in eclipse 3.6 32bit

2011-05-04 Thread Landy
New question #155881 on Sikuli: https://answers.launchpad.net/sikuli/+question/155881 I've read the instruction - http://sikuli.org/docx/faq/040-other-ide.html and did it step by step, but when I run the first script, I still get the error message: *sys-package-mgr*: processing new jar, 'C:\Pro