Re: [Sikuli-driver] [Question #266017]: How to find x, y coordinates automatically when the system resulution may getting changed

2015-04-28 Thread manisha
Question #266017 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266017

Status: Answered => Solved

manisha 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 #264950]: Intermittent failure of Sikuli - unpaired surrogate

2015-04-28 Thread Geoff Bache
Question #264950 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264950

Geoff Bache posted a new comment:
Setting -d 3 doesn't help: it's a Sikuli option and in this case Jython
crashes before it gets as far as doing anything with Sikuli.

But I've printed the environment before starting it and I can't see
anything strange. It's the same as the environment when it works...

-- 
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 #265844]: how to use loop for taking screen shots till a image appears

2015-04-28 Thread arush
Question #265844 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265844

Status: Answered => Open

arush is still having a problem:
Following error message are observed
[error] Error message: SyntaxError: ("mismatched input 'reg' expecting 
NEWLINE", 
('C:\\Users\\RUSHIK~1\\AppData\\Local\\Temp\\sikuli-tmp477520822029196547.py', 
30, 7, 'Region reg = capture(App.focusedWindow());\n'))

-- 
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 #265845]: how to use loop for taking screen shots till a image appears

2015-04-28 Thread Jeremy
Question #265845 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265845

Status: Open => Answered

Jeremy proposed the following answer:
If I'm reading it right, this is what I do:


int error_count = 0;
while(s.exists(screenImage,0) == null){
Thread.sleep(500);
error_count++;
//sometimeout number
if (error_count > 10)
return false; //program was stuck and didn't work. Try again.
}

I usually have other fanciness that happens so I put in a timeout or
looking for other options.

-- 
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 #266034]: MoveMouseDelay missing

2015-04-28 Thread Jeremy
New question #266034 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266034

Hello,

I eveadently had a lot of issues with my older jar. 

When I got the new one, the only one I can't figure out is how do I set the 
MouseDelay? This is what I've used in the past:
//Settings.MoveMouseDelay = (float) 2.0;

However, I can't get that statement to compile anymore.

-- 
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 #266034]: MoveMouseDelay missing

2015-04-28 Thread RaiMan
Question #266034 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266034

Status: Open => Answered

RaiMan proposed the following answer:
the problem might be, that the class Settings now has moved to
org.sikuli.basics

-- 
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] [Bug 1270177] Re: [request] want a feature to select an image in a drop down list

2015-04-28 Thread Ryan
Why not dynamically create a region based on the corners of the
dropdown?

It wouldn't matter what direction the dropdown opens since the user will
specify what the top left, bottom left, and top right region look like.
If you capture the images carefully it won't matter what is behind the
dropdown or how many options are in the dropdown (important in most of
my scenarios). If all actions relating to the dropdown utilize this
region it will also allow for separate scoping of both up/down/scroll
arrows and any text searches by OCR.

The code is pretty simple to abstract into a function, or superclass
depending on how Object Oriented the project is, and re-use all over the
project.  I feel like from an OO perspective that it seems a little
domain specific to be built into sikuli as a class of some kind, but as
a function the logic would be as simple as (psuedo code):

openDropDown(ddHead, topLeft, topRight, bottomLeft):
click the head
find each image
calculate the width from topLeft to topRight
calculate the height from topLeft to bottomLeft
region(topLeft.getX(), topLeft.getY(), width, height)

Here the most general case would be to return that new region, however
if it were part of a class it could be set as an attribute and then
provide scrolling, clicking, and reading options.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1270177

Title:
  [request] want a feature to select an image in a drop down list

Status in Sikuli:
  Incomplete

Bug description:
  Hello.

  It's probably one of the most difficult thing to do with Sikuli.
  I have no solution at all to generalize this function to work every time.
  But I think it will be more than useful.

  -- system --
  Sikuli 1.0.1
  Win 7 (32)
  Java 1.7.51

  Regards.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1270177/+subscriptions

___
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 #266034]: MoveMouseDelay missing

2015-04-28 Thread Jeremy
Question #266034 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266034

Status: Answered => Solved

Jeremy 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


[Sikuli-driver] [Question #266063]: ImportError (HTMLTestRunner.sikuli has no HTMLTestRunner.py)

2015-04-28 Thread Mike
New question #266063 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266063

Hi there.

I was using 1.0.1 on a Mac. I had a script that was previously working with 
HTMLTestRunner. I upgraded the Mac to Yosemite and encountered the issue which 
has prompted me to switch to 1.1.0.

Now when trying to launch my previous script, I'm getting the error:
ImportError ( HTMLTestRunner.sikuli has no HTMLTestRunner.py)

My HTMLTestRunner.py is in a folder with my test.sikuli, so this didn't fit 
with previous questions answered around here concerning other import errors.

I hope I've provided the right information.

Thank you :)

-- 
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 #266063]: ImportError (HTMLTestRunner.sikuli has no HTMLTestRunner.py)

2015-04-28 Thread Mike
Question #266063 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266063

Mike gave more information on the question:
Oh, I guess I should mention I don't have a HTMLTestRunner.sikuli, but
I'm confused about that part as no setup guide mentions creating that
package/folder.

-- 
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 #266077]: livVisionProxy.so error

2015-04-28 Thread lijianl002
New question #266077 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266077

Hi:

I was installl sikuli-1.1.0  on linux

while i was running  'mvn -pl Setup exec:exec'  , it exited with an error:


 A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x6acbb6b8, pid=6513, tid=1988408496
#
# JRE version: 6.0
# Java VM: OpenJDK Client VM (14.0-b16 mixed mode linux-mips )
# Problematic frame:
# C  [libVisionProxy.so+0x4b6b8]  
Java_org_sikuli_natives_VisionProxyJNI_FindResults_1size+0x0
#
# An error report file with more information is saved as:
# /home/g313/SikuliX-2014-master/Setup/hs_err_pid6513.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug. 

i know  libVisionProxy.so was compiled by itself, so could you explain this 
error for me , 
what should i do to handle this error ?

-- 
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] [Bug 1270177] Re: [request] want a feature to select an image in a drop down list

2015-04-28 Thread RaiMan
** Changed in: sikuli
   Status: Incomplete => In Progress

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1270177

Title:
  [request] want a feature to select an image in a drop down list

Status in Sikuli:
  In Progress

Bug description:
  Hello.

  It's probably one of the most difficult thing to do with Sikuli.
  I have no solution at all to generalize this function to work every time.
  But I think it will be more than useful.

  -- system --
  Sikuli 1.0.1
  Win 7 (32)
  Java 1.7.51

  Regards.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1270177/+subscriptions

___
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 #266063]: ImportError (HTMLTestRunner.sikuli has no HTMLTestRunner.py)

2015-04-28 Thread RaiMan
Question #266063 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266063

Status: Needs information => Answered

RaiMan proposed the following answer:
BTW: be aware of bug 1447096

-- 
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 #266063]: ImportError (HTMLTestRunner.sikuli has no HTMLTestRunner.py)

2015-04-28 Thread RaiMan
Question #266063 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266063

Status: Open => Needs information

RaiMan requested more information:
With 1.1.0 you do not need the
HTMLTestRunner.py 
at all in your own sources, since it is now bundled with Sikuli.

So the solution/workaround for your problem:
delete your copy of HTMLTestRunner.py wherever it is and simply run your script.

Nevertheless, your solution should work also.
So to check it:
How exactly is your folder setup around your current script?

-- 
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 #266077]: livVisionProxy.so error

2015-04-28 Thread RaiMan
Question #266077 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266077

Status: Open => Answered

RaiMan proposed the following answer:
if you want to use SikuliX 1.1.0, then you should simply use the setup 
according to 
http://sikulix.com + quickstart

BTW:
just checked with the current github repo:
mvn -pl Setup exec:exec

should not work at all (wrong exe target specified).
So I guess you are working with an older version of the repo anyway.

-- 
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 #266077]: livVisionProxy.so error

2015-04-28 Thread RaiMan
Question #266077 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266077

RaiMan proposed the following answer:
just fixed the problem in the project:
mvn -pl Setup exec:exec

now works again, but the setup results are now found in
~/.Sikulix/SikulixSetup

-- 
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