Re: [Sikuli-driver] [Question #171725]: Multiple if else indent problem

2011-09-20 Thread Dude
Question #171725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171725 Status: Open = Answered Dude proposed the following answer: Hi, Can u tell in which line , u get that error. According to my observation , the error is because of that sleep(45), which is in last line

Re: [Sikuli-driver] [Question #171684]: wait(file.png) returns too soon

2011-09-20 Thread RaiMan
Question #171684 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171684 RaiMan posted a new comment: ---1: using exact() seems to make problems. try using similar(0.99) instead ---2: smaller region a smaller region always makes things better. In this case, this could be the

Re: [Sikuli-driver] [Question #171684]: wait(file.png) returns too soon

2011-09-20 Thread RaiMan
Question #171684 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171684 RaiMan posted a new comment: Another possibility is, to first position on the line numbers and then look for the symbol to the left. In such critical situations I always analyze the similarity values of

Re: [Sikuli-driver] [Question #171701]: What is expected behavior with onAppear handlers

2011-09-20 Thread RaiMan
Question #171701 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171701 Status: Open = Answered RaiMan proposed the following answer: The pairing is not onXXX() -- observer(), it is one region has one observer which has one handler and might have multiple onXXX So if you

Re: [Sikuli-driver] [Question #171725]: Multiple if else indent problem

2011-09-20 Thread RaiMan
Question #171725 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171725 RaiMan proposed the following answer: The problem is, that the used indentations are inconsistent within the for loop. The only consistent way to solve this (besides try and error): - delete all lines

Re: [Sikuli-driver] [Question #171616]: How to append common string into an array

2011-09-20 Thread RaiMan
Question #171616 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171616 Status: Open = Answered RaiMan proposed the following answer: Sorry, my fault: raw strings cannot contain a single backslash at the end of the string. So I finally recommend the following for your path

Re: [Sikuli-driver] [Question #171648]: Search inside files and get particular data

2011-09-20 Thread RaiMan
Question #171648 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171648 Status: Open = Needs information RaiMan requested more information: I do not understand, what you mean with way to cut data from one file and paste it to another. the above solution creates a new file,

Re: [Sikuli-driver] [Question #171666]: Save logs in a txt file

2011-09-20 Thread RaiMan
Question #171666 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171666 Status: Open = Answered RaiMan proposed the following answer: easiest way: run the .sikuli from command line and redirect the output to a file using the operators. The other possibility might be to

[Sikuli-driver] [Question #171747]: rc3 appears to have broken command line parameter passing ability

2011-09-20 Thread Al Alder
New question #171747 on Sikuli: https://answers.launchpad.net/sikuli/+question/171747 My sikuli script is called from a perl script. I pass in arguments using : title=sys.argv[1] day=sys.argv[2] This worked fine in rc2, but this appears to be broken in rc3. Is there another way in python to

Re: [Sikuli-driver] [Question #171679]: WINDOWS KEY how???

2011-09-20 Thread RaiMan
Question #171679 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171679 RaiMan proposed the following answer: @Harry KEY_WIN (deprecated in rc3) is a modifier key and cannot be used as the first parameter @ Ezequiel correct for rc2: type(r, KEY_WIN) beginning with rc3:

Re: [Sikuli-driver] [Question #171747]: rc3 appears to have broken command line parameter passing ability

2011-09-20 Thread RaiMan
Question #171747 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171747 Status: Open = Needs information RaiMan requested more information: what do you get when saying print sys.argv in the Sikuli script? -- You received this question notification because you are a

Re: [Sikuli-driver] [Question #171716]: Cannot start Sikuli X IDE 1.0rc3 on Windows XP

2011-09-20 Thread RaiMan
Question #171716 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171716 Status: Open = Answered RaiMan proposed the following answer: have a look at bug 851754 -- You received this question notification because you are a member of Sikuli Drivers, which is an answer

Re: [Sikuli-driver] [Question #171747]: rc3 appears to have broken command line parameter passing ability

2011-09-20 Thread RaiMan
Question #171747 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171747 RaiMan posted a new comment: tested on my Win7 64Bit: no problems. Parameters given to Sikuli-IDE.bat are contained in sys.argv beginning with entry 1. -- You received this question notification because

Re: [Sikuli-driver] [Question #171747]: rc3 appears to have broken command line parameter passing ability

2011-09-20 Thread RaiMan
Question #171747 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171747 RaiMan requested more information: How do you call the Sikuli script from Perl? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #171616]: How to append common string into an array

2011-09-20 Thread Dude
Question #171616 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171616 Dude 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 #171616]: How to append common string into an array

2011-09-20 Thread Dude
Question #171616 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171616 Status: Answered = Solved Dude confirmed that the question is solved: Hi , Thank you, thats solved my problem... -- You received this question notification because you are a member of Sikuli Drivers,

Re: [Sikuli-driver] [Question #171418]: RC3 and Robot Framework problems --- workaround

2011-09-20 Thread RaiMan
Question #171418 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171418 Summary changed to: RC3 and Robot Framework problems --- workaround Description changed to: * workaround see comment #2 - After following this blogpost (

Re: [Sikuli-driver] [Question #171679]: WINDOWS KEY how???

2011-09-20 Thread Ezequiel
Question #171679 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171679 Status: Answered = Solved Ezequiel 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,

[Sikuli-driver] [Question #171771]: run(command) on MAC

2011-09-20 Thread Stephan
New question #171771 on Sikuli: https://answers.launchpad.net/sikuli/+question/171771 Hi there, I'm trying to build up an ssh connection via a python script(sftp.py) called by a sikuli-script. This works actually fine on windows using the run command: run(python

Re: [Sikuli-driver] [Question #171771]: run(command) on MAC

2011-09-20 Thread RaiMan
Question #171771 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171771 Status: Open = Answered RaiMan proposed the following answer: I never got complex run commands working on Mac. Finally I ended up using Jythons subprocess, which is much more flexible (after some

Re: [Sikuli-driver] [Question #171771]: run(command) on MAC

2011-09-20 Thread Stephan
Question #171771 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171771 Status: Answered = Open Stephan is still having a problem: I already tried it on the terminal before coding it. And it worked. I Had the same problem using run commands on windows and thought things

Re: [Sikuli-driver] [Question #171771]: run(command) on MAC

2011-09-20 Thread RaiMan
Question #171771 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171771 Status: Open = Answered RaiMan proposed the following answer: Upgraded to 2.7? How did you do that? Somehow you have mixed things up: from command line you seem to use 2.7, but internally via

Re: [Sikuli-driver] [Question #169859]: Availability? Android: using Monkey runner? Mac: Cocoa Accessibility API?

2011-09-20 Thread Tsung-Hsiang Chang
Question #169859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/169859 Tsung-Hsiang Chang posted a new comment: I just updated the android robot http://sikuli.org/dl/android- robot-0.2.jar, which can be used without MonkeyRunnerStarter now. Here is a sample Java code: import

Re: [Sikuli-driver] [Question #169859]: Availability? Android: using Monkey runner? Mac: Cocoa Accessibility API?

2011-09-20 Thread RaiMan
Question #169859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/169859 Description changed to: information for Android experimental access in rc3 No documentation for the android extension right now. I just put together an example script in our source repository.

[Sikuli-driver] [Question #171801]: Integrating with Java/QTP

2011-09-20 Thread Faisal
New question #171801 on Sikuli: https://answers.launchpad.net/sikuli/+question/171801 Hey, I am working on some thing which is mainly based on Java and QTP. I would like to know is there any way I could integrate Sikuli in my test environment. I am looking for a facility in which my scripts

[Sikuli-driver] [Question #171813]: Image detection inconsistency between RC2 and RC3

2011-09-20 Thread Ruoxing Hu
New question #171813 on Sikuli: https://answers.launchpad.net/sikuli/+question/171813 I created a whole test suite in RC2 for a website under four different browsers, and the test scripts had run smoothly for several weeks. But yesterday after I installed RC3, a lot of images in the scripts

Re: [Sikuli-driver] [Question #169859]: Availability? Android: using Monkey runner? Mac: Cocoa Accessibility API?

2011-09-20 Thread Raymond Gonzales
Question #169859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/169859 Raymond Gonzales gave more information on the question: I tried your example using the newest android-robot jar and received an error. Here is the error: java.lang.NoSuchMethodError:

Re: [Sikuli-driver] [Question #169859]: Availability? Android: using Monkey runner? Mac: Cocoa Accessibility API?

2011-09-20 Thread Tsung-Hsiang Chang
Question #169859 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/169859 Tsung-Hsiang Chang posted a new comment: What's your android SDK version? I'm using 2.3.3, which works fine. -- You received this question notification because you are a member of Sikuli Drivers, which is

Re: [Sikuli-driver] [Question #171813]: Image detection inconsistency between RC2 and RC3

2011-09-20 Thread Tsung-Hsiang Chang
Question #171813 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171813 Tsung-Hsiang Chang posted a new comment: Try to set MinTargetSize back to 6, which was used in RC2. See http://sikuli.org/docx/globals.html#mintargetsize for more details. If this doesn't work, come back

[Sikuli-driver] [Question #171825]: Importing Sikuli Script, Sikuli Specific functions not defined (in Sikuli IDE)

2011-09-20 Thread Harry Readinger
New question #171825 on Sikuli: https://answers.launchpad.net/sikuli/+question/171825 I am attempting to use a Sikuli Script as a module for other scripts in my automation suite (its actually launching the program, making it a module makes me not have to copy/paste it at the beginning of each

Re: [Sikuli-driver] [Question #171813]: Image detection inconsistency between RC2 and RC3

2011-09-20 Thread Ruoxing Hu
Question #171813 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171813 Ruoxing Hu posted a new comment: Hi, I tried, but still no luck. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #171716]: Cannot start Sikuli X IDE 1.0rc3 on Windows XP

2011-09-20 Thread Peter Kim
Question #171716 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171716 Status: Answered = Solved Peter Kim confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli

[Sikuli-driver] [Question #171835]: I need some Variable Help :D

2011-09-20 Thread chaz7201
New question #171835 on Sikuli: https://answers.launchpad.net/sikuli/+question/171835 Below is some code im using at the moment in a game since it seemed a good way to get used to using this code. The game is Galaxy Online 2 facebook app. I wanted to make a quick bot to go through a friends list

Re: [Sikuli-driver] [Question #169928]: on appear of image which is already there

2011-09-20 Thread chaz7201
Question #169928 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/169928 chaz7201 posted a new comment: if you can delete this image with the delete key and undo the process... you could move the cursor with tab and check if removing 4 or 5 spaces deletes the image. if it does

Re: [Sikuli-driver] [Question #171835]: I need some Variable Help :D

2011-09-20 Thread chaz7201
Question #171835 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171835 Status: Open = Solved chaz7201 confirmed that the question is solved: rewrote this with out var's and it works perfectly def findfriendresourcepage():

Re: [Sikuli-driver] [Question #171813]: Image detection inconsistency between RC2 and RC3

2011-09-20 Thread Tsung-Hsiang Chang
Question #171813 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171813 Tsung-Hsiang Chang posted a new comment: Can you post a few examples of the images you are using? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer

Re: [Sikuli-driver] [Question #115982]: While loop problem

2011-09-20 Thread chaz7201
Question #115982 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/115982 chaz7201 posted a new comment: a slolution would have been nice to see here :D -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli.

[Sikuli-driver] [Question #171845]: I cant count!!

2011-09-20 Thread chaz7201
New question #171845 on Sikuli: https://answers.launchpad.net/sikuli/+question/171845 I'm just looking for an answer on how to count with a passable variable. ### This always returns 0 inside the loop ## a = 0 def addOne(a): a +=1 while exists(1316568059480.png): ## just

Re: [Sikuli-driver] [Question #171747]: rc3 appears to have broken command line parameter passing ability

2011-09-20 Thread Al Alder
Question #171747 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171747 Status: Needs information = Open Al Alder gave more information on the question: Here is how I call the script from perl: my $Dir = '/Applications/CC-Video.app/Contents/MacOS/Bin' ; system

Re: [Sikuli-driver] [Question #171813]: Image detection inconsistency between RC2 and RC3

2011-09-20 Thread Ruoxing Hu
Question #171813 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171813 Ruoxing Hu posted a new comment: Thank you for your quick response! Actually I did several tests and found out that the problem is not unable to recognize images, quite opposite, it's recognizing more

Re: [Sikuli-driver] [Question #171813]: Image detection inconsistency between RC2 and RC3

2011-09-20 Thread Tsung-Hsiang Chang
Question #171813 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171813 Status: Open = Invalid Tsung-Hsiang Chang changed the question status: not really a problem. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer

Re: [Sikuli-driver] [Question #171813]: Image detection inconsistency between RC2 and RC3

2011-09-20 Thread Tsung-Hsiang Chang
Question #171813 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171813 Tsung-Hsiang Chang posted a new comment: Good to know that. Feel free to come back any time. Just for record, RC3's vision engine should be more robust than RC2's. This means you may get inconsistent

[Sikuli-driver] [Question #171860]: Weird behavior of sikuli tool

2011-09-20 Thread Dude
New question #171860 on Sikuli: https://answers.launchpad.net/sikuli/+question/171860 Hi, 171616 How to append common string into an array .. This is my previous bug, according to ur comment , i used Import os. But this particular file bahaving differently Paste this code and save it as any

Re: [Sikuli-driver] [Question #171648]: Search inside files and get particular data

2011-09-20 Thread Jeff Sant
Question #171648 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/171648 Status: Needs information = Open Jeff Sant gave more information on the question: Dear Friend, I want to take input from a file eg. testcases.text testcases = open(c:\testcases.txt) pass =