[Sikuli-driver] [Bug 1531164] Re: findAll

2016-01-05 Thread RaiMan
should start as question

** Changed in: sikuli
   Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/sikuli/+question/280606

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

Title:
  findAll

Status in Sikuli:
  Invalid

Bug description:
  Have a script that imports another Script
  e.g
  Settings.MoveMouseDelay = 0
  import Sub_Login
  def Open_User():
  global Sub_Login
  global ThisLogin
  global ThisPassword
  global ThisServer
  global ThisUser
  global Open_Which_App
  global result
  print "Open_User()  Import Sub_Login.Sub_Run_Single_Login"
  result = 0
  result = 
Sub_Login.Sub_Run_Single_Login(ThisLogin,ThisPassword,ThisServer,ThisUser,Open_Which_App)
  print "Open_User()  Import Sub_Login.Sub_Run_Single_Login result 
",result

  
  I added this call to find out when my script failed
  if I set the variables and call - Open_User() the scripts 
 Loads browser
 Enters Login Details
looks for an image to click - finds image and logs in { image =  if 
exists("1433762728604-2.png",5): }

  The Problem - I need to use findAll to determine what the variables
  are

  if I use findAll then set the variables (using the same as above) and call - 
Open_User() the scripts
 Loads browser
 Enters Login Details
looks for an image to click - Fails to find the above image { image 
=  if exists("1433762728604-2.png",5): }

  My uneducated conclusion is that findAll is someway corrupting the
  script

  Is there any debug that I could add to help in finding out what is
  happening

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1531164/+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 #280571]: How to convert a Region snapshot to a java byte array.

2016-01-05 Thread RaiMan
Question #280571 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280571

Summary changed to:
How to convert a Region snapshot to a java byte array.

-- 
You received this question notification because your team Sikuli Drivers
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 #280602]: Get Region & Adjacent Regions after change in region

2016-01-05 Thread RaiMan
Question #280602 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280602

Status: Open => Answered

RaiMan proposed the following answer:
you can use onChange for the whole screen and in case of changes check,
where the changes happened (top left corner of changed area is in what
region)

see: 
http://sikulix-2014.readthedocs.org/en/latest/region.html#observing-visual-events-in-a-region

-- 
You received this question notification because your team Sikuli Drivers
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 #280571]: Convert a Region to a java byte array.

2016-01-05 Thread RaiMan
Question #280571 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280571

Status: Open => Answered

RaiMan proposed the following answer:
1.1.0+

use 
BufferedImage bimg = someRegion.capture().getImage()

in the net (e.g. stack overflow) you will find the code, to get the byte
array from a buffered image.

-- 
You received this question notification because your team Sikuli Drivers
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 #279638]: Help finding image in Java

2016-01-05 Thread RaiMan
Question #279638 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/279638

Status: Open => Needs information

RaiMan requested more information:
--- using 1.1.0 final?

--- did you run a successful setup?

--- What is your Java IDE?

-- 
You received this question notification because your team Sikuli Drivers
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 #280606]: findAll

2016-01-05 Thread RaiMan
Question #280606 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280606

Status: Open => Needs information

RaiMan requested more information:
--- not valid Python:
image = if exists("1433762728604-2.png",5):

--- I cannot see any findAll used in the code

-- 
You received this question notification because your team Sikuli Drivers
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 #280606]: findAll

2016-01-05 Thread RaiMan
Question #280606 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280606

RaiMan posted a new comment:
should start as question

-- 
You received this question notification because your team Sikuli Drivers
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 #280609]: Need sikuli jar file for 64bit windows7

2016-01-06 Thread RaiMan
Question #280609 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280609

Status: Open => Answered

RaiMan proposed the following answer:
you need version 1.1.0:
http://sikulix.com

-- 
You received this question notification because your team Sikuli Drivers
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 #280609]: Need sikuli jar file for 64bit windows7

2016-01-06 Thread RaiMan
Question #280609 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280609

Status: Open => Answered

RaiMan proposed the following answer:
carefully read through the quick start tab.

You have to RUN setup!!!

-- 
You received this question notification because your team Sikuli Drivers
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 #280518]: Windows 10, Type not working properly

2016-01-06 Thread RaiMan
Question #280518 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280518

RaiMan posted a new comment:
Yep, you got it ;-)

-- 
You received this question notification because your team Sikuli Drivers
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 #280609]: Need sikuli jar file for 64bit windows7

2016-01-06 Thread RaiMan
Question #280609 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280609

Status: Open => Answered

RaiMan proposed the following answer:
What you need is told here in the above error log:

Some of the downloads did not complete successfully.
Check the logfile for possible error causes.
If you think, setup's inline download is blocked somehow on
your system, you might download the appropriate raw packages manually
into the folder Downloads in the setup folder and run setup again.
download page: https://launchpad.net/raiman/sikulix2013+/1.1.0
files to download (information is in the setup log file too)
sikulixlibswin-1.1.0.jar
sikulixsetupAPI-1.1.0-forsetup.jar
Be aware: The raw packages are not useable without being processed by setup!
For other reasons, you might simply try to run setup again.

-- 
You received this question notification because your team Sikuli Drivers
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 #280571]: How to convert a Region snapshot to a java byte array.

2016-01-06 Thread RaiMan
Question #280571 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280571

RaiMan posted a new comment:
thanks for the feedback and solution doc

You are right with the deprecated hint: I simply did not remember that.
I will delete that for version 1.1.1+ and bring it back in version 2, when 
these features will be available in the class Image.

-- 
You received this question notification because your team Sikuli Drivers
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 #280672]: comand line quoted parameters don't work

2016-01-07 Thread RaiMan
Question #280672 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280672

Status: Open => Answered

RaiMan proposed the following answer:
use apostrophes:

runsikulix.cmd -r  -- "par 1" "par 2"

-- 
You received this question notification because your team Sikuli Drivers
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 #280712]: Sikuli Exact Image Match Failure

2016-01-07 Thread RaiMan
Question #280712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280712

Status: Open => Answered

RaiMan proposed the following answer:
read this:
http://sikulix-2014.readthedocs.org/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

to understand, how SikuliX works and what you can do, to minimize the
risk of false positives.

-- 
You received this question notification because your team Sikuli Drivers
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 #280703]: How to get tooltip text inside image

2016-01-07 Thread RaiMan
Question #280703 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280703

Status: Open => Answered

RaiMan proposed the following answer:
you should consult the docs.

-- 
You received this question notification because your team Sikuli Drivers
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 #280731]: How to search for a text in region and click on the text

2016-01-08 Thread RaiMan
Question #280731 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280731

Status: Open => Answered

RaiMan proposed the following answer:
see docs:
Region.find("some text")

or 1.1.0+
Region.findText("some text")

-- 
You received this question notification because your team Sikuli Drivers
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 #280740]: Multiple ImagePaths for Jar

2016-01-08 Thread RaiMan
Question #280740 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280740

Linked to bug: #1532134
https://bugs.launchpad.net/bugs/1532134
"[1.1.0] Multiple ImagePaths for Jar not working"

-- 
You received this question notification because your team Sikuli Drivers
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 #280740]: Status of bug #1532134 changed to 'Opinion' in Sikuli

2016-01-08 Thread RaiMan
Bug #1532134 status changed in Sikuli:

In Progress => Opinion

https://bugs.launchpad.net/sikuli/+bug/1532134
"[1.1.0] Multiple ImagePaths for Jar not working"

This bug is linked to #280740.
Multiple ImagePaths for Jar
https://answers.launchpad.net/sikuli/+question/280740

-- 
You received this question notification because your team Sikuli Drivers
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 #280740]: Status of bug #1532134 changed to 'In Progress' in Sikuli

2016-01-08 Thread RaiMan
Bug #1532134 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1532134
"[1.1.0] Multiple ImagePaths for Jar not working"

This bug is linked to #280740.
Multiple ImagePaths for Jar
https://answers.launchpad.net/sikuli/+question/280740

-- 
You received this question notification because your team Sikuli Drivers
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 #280740]: Multiple ImagePaths for Jar

2016-01-08 Thread RaiMan
Question #280740 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280740

Status: Open => Solved

RaiMan changed the question status:
I made it a bug and will check it.

-- 
You received this question notification because your team Sikuli Drivers
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 1532134] [NEW] [1.1.0] Multiple ImagePaths for Jar not working

2016-01-08 Thread RaiMan
Public bug reported:

I have images in different folders, e.g.
folder1
--- 1.png

folder2
--- 2.png

This works for running from Eclipse:
ImagePath.add("src/main/resources/package/images/folder1");
ImagePath.add("src/main/resources/package/images/folder2");
SikuliX is able to detect the correct folder for each image.

However, when I switch to a jar run:
ImagePath.add(Test.class.getName() + "/package/images/folder1", 
"src/main/resources");
ImagePath.add(Test.class.getName() + "/package/images/folder2", 
"src/main/resources");

SikuliX only looks in the first folder I add:
[error] Image: could not be loaded: 
jar:file:/D:/path/target/my.jar!/package/images/folder1/2.png
So the folder1 images can be loaded, but the folder2 images can't. The altPaths 
work fine when running from Eclipse though.

Could I please ask for your advice on this?

** Affects: sikuli
 Importance: High
 Assignee: RaiMan (raimund-hocke)
 Status: Opinion

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Status: In Progress => Opinion

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  [1.1.0] Multiple ImagePaths for Jar not working

Status in Sikuli:
  Opinion

Bug description:
  I have images in different folders, e.g.
  folder1
  --- 1.png

  folder2
  --- 2.png

  This works for running from Eclipse:
  ImagePath.add("src/main/resources/package/images/folder1");
  ImagePath.add("src/main/resources/package/images/folder2");
  SikuliX is able to detect the correct folder for each image.

  However, when I switch to a jar run:
  ImagePath.add(Test.class.getName() + "/package/images/folder1", 
"src/main/resources");
  ImagePath.add(Test.class.getName() + "/package/images/folder2", 
"src/main/resources");

  SikuliX only looks in the first folder I add:
  [error] Image: could not be loaded: 
jar:file:/D:/path/target/my.jar!/package/images/folder1/2.png
  So the folder1 images can be loaded, but the folder2 images can't. The 
altPaths work fine when running from Eclipse though.

  Could I please ask for your advice on this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1532134/+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 #280712]: Sikuli Exact Image Match Failure

2016-01-08 Thread RaiMan
Question #280712 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280712

Status: Open => Answered

RaiMan proposed the following answer:
--- I managed to find the score by using the Sikuli IDE matching preview
this is not recommended, to find out the match score, that you get while your 
program is running.
IDE Preview is meant to get some hint in special cases, where you need a 
similarity score, to use for a Pattern.

You are programming in Java, so you should look at the Java docs:
http://nightly.sikuli.de/docs/index.html

The object returned by exists() is a Match.

... and if you followed comment #1, then you should know, that scores
below 0.8 are generally bad scores and scores below 0.7 should be
avoided in all cases. The solution is to have good shots as mentioned in
the article.

So again: make sure, you have understood, how the SikuliX matching
works.

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Sikulix Region not working

2016-01-08 Thread RaiMan
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747

Status: Open => Answered

RaiMan proposed the following answer:
Supposing you are using version 1.1.0

To get the speed-up of using Regions:

if CurrentBarRegion.exists(Pattern("1452165008359.png").similar(0.76),
0): CurrentBarRegion.hover()

... which searches in the CurrentBarRegion and if found hovers over the
last match in CurrentBarRegion

... and you should just work with the standard Settings especially as
newbie:

so just purge these:
Settings.ObserveScanRate = 18 # not relevant for your script (no observe 
used)
Settings.WaitScanRate = 15 # does not have an effect with exists(..., 0)
Settings.MoveMouseDelay = 0 # saves 0.5 seconds per mouse move (not really 
relevant)
Settings.MouseDelay = 0 # not relevant in your case and seldom necessary

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Sikulix Region not working

2016-01-08 Thread RaiMan
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747

RaiMan proposed the following answer:
... and the same for this:

 if exists ("1452165060367.png", 0): click(getLastMatch())

... better

 if CurrentBarRegion.exists("1452165060367.png", 0):
CurrentBarRegion.click()

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Sikulix Region not working

2016-01-09 Thread RaiMan
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747

Status: Open => Needs information

RaiMan requested more information:
Please send the zipped .sikuli folder to my mail rmhdevelop--at--me--dot
--com.

I have to check.

On what system are you running? What Java version?

Still supposing it is version 1.1.0

-- 
You received this question notification because your team Sikuli Drivers
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 #280774]: Observe doesn't work

2016-01-09 Thread RaiMan
Question #280774 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280774

Status: Open => Answered

RaiMan proposed the following answer:
using observe here is simply overkill ;-)

success = False
if r1.exists("1.png", 10): # wait 10 seconds max for 1.png
r1.doubleClick() # double click if found: last match in r1
if r2.exists(Pattern("2.png").similar(0.95), 10):  # then wait 10 seconds 
max for 2.png
   success = True # if found: it is success
if success:
popup("success") # or do something else
else:
   exit()

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Sikulix Region not working

2016-01-09 Thread RaiMan
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747

Status: Open => Needs information

RaiMan requested more information:
testing with a similar environment, I cannot see, that the memory
consumption constantly increases over time.

Nevertheless, you should take
CurrentBarRegion =( Region(684,285,1068,710)) 

out of the loop (hence before the while), since it is a constant and no
need to create the same new Region object with every loop turn.

another question:
the crash is reported in
c:/MinGW/msys/1.0/stuff/opencv/modules/core/src/alloc.cpp

Do you have this on your system?

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Sikulix Region not working

2016-01-09 Thread RaiMan
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747

Status: Open => Answered

RaiMan proposed the following answer:
--- MinGW folder
I only wanted to make sure.
The information seems to be the debug information, that is preserved in the 
pre-built stuff from the time when I did the build on my system. So just forget 
it.

--- short on memory exception
the problem situation as such is clear and does not need any further debugging: 
at the time of crash, OpenCV tries to allocate memory for a screen image that 
was captured before, to search something in it. This is the normal procedure 
during SikuliX find operation.

The question is: Why does memory get short in your situation? Usually this is 
caused by some memory leak (Java objects still referenced somehow, so their 
memory cannot be garbage collected).
This might be information, that does not say anything to you ;-)

So just make your test with the statement outside the loop and report
back.

Hope I will find something meanwhile or in the next days.

-- 
You received this question notification because your team Sikuli Drivers
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 #280792]: Sikuli on 4K screens

2016-01-09 Thread RaiMan
Question #280792 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280792

Status: Open => Answered

RaiMan proposed the following answer:
IDE -> Preferences -> Tab Text Editing -> Font

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Sikulix Region not working

2016-01-10 Thread RaiMan
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747

RaiMan proposed the following answer:
Thanks again for your valuable feedback, highly appreciated.

... and what you have done so far with your changes moves you some steps
forward towards being a SikuliX expert ;-)

I will create my own test, that can run over a longer time and reports 
constantly about the different memory consumptions.
And I will check the code, wether there might be some possible memory leak.

To track this case, I will convert your question to a bug.

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Sikulix Region not working

2016-01-10 Thread RaiMan
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747

Linked to bug: #1532541
https://bugs.launchpad.net/bugs/1532541
"[1.1.0] Possible memory leak with Region objects in long running Jython 
scripts"

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Sikulix Region not working

2016-01-10 Thread RaiMan
Question #280747 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280747

Status: Answered => Solved

RaiMan changed the question status:
made it a bug for further treatment

-- 
You received this question notification because your team Sikuli Drivers
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 #280747]: Status of bug #1532541 changed to 'In Progress' in Sikuli

2016-01-10 Thread RaiMan
Bug #1532541 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1532541
"[1.1.0] Possible memory leak with Region objects in long running Jython 
scripts"

This bug is linked to #280747.
Sikulix Region not working
https://answers.launchpad.net/sikuli/+question/280747

-- 
You received this question notification because your team Sikuli Drivers
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 1532541] [NEW] [1.1.0] Possible memory leak with Region objects in long running Jython scripts

2016-01-10 Thread RaiMan
Public bug reported:

* for more information see the related question



I've been trying to make a script that looks for specific images, clicks on 
them, and then clicks on the next button after that.
Currently, it does that - but it's incredibly slow, it can take up to two 
minutes just to click on 4-6 images/buttons. Overall there are about 10 images 
it's looking for all at once as they randomly pop up.

I've tried adding a region to my code to help speed it up  but I couldn't 
figure it out as I'm extremely new to even the most basic of script writing. 
Below is the code I'm currently using:
while True:
Settings.ObserveScanRate = 18
Settings.WaitScanRate = 15
Settings.MoveMouseDelay = 0
Settings.MouseDelay = 0

CurrentBarRegion = ( Region(689,294,1059,685))

if exists (Pattern("1452165008359.png").similar(0.76),  0): hover 
(getLastMatch())
if exists ("1452165060367.png", 0): click(getLastMatch())

There's about eight more if exists with pictures in it but that's the code.
Some thought as to why Sikulix is slow: all images are very similar with light 
blue colors, seems Sikulix doesn't like light blue that much. Maybe the method 
I'm using is bad and slowing down the process as well. Could try using text 
search possibly, all buttons have big text in them.

 Pictures are all high quality, my monitor is  24 inches, 1920x1080
resolution, lots of ram good CPU etc so it can't be due to that. If
anyone can help me speed up Sikulix by showing me how to put in region
properly or another method I'd greatly appreciate it. Thanks!

** Affects: sikuli
 Importance: Medium
 Assignee: RaiMan (raimund-hocke)
 Status: In Progress

** Description changed:

+ * for more information see the related question
+ 
+ 
+ 
  I've been trying to make a script that looks for specific images, clicks on 
them, and then clicks on the next button after that.
  Currently, it does that - but it's incredibly slow, it can take up to two 
minutes just to click on 4-6 images/buttons. Overall there are about 10 images 
it's looking for all at once as they randomly pop up.
  
  I've tried adding a region to my code to help speed it up  but I couldn't 
figure it out as I'm extremely new to even the most basic of script writing. 
Below is the code I'm currently using:
  while True:
- Settings.ObserveScanRate = 18
- Settings.WaitScanRate = 15
- Settings.MoveMouseDelay = 0
- Settings.MouseDelay = 0
- 
-  
- CurrentBarRegion = ( Region(689,294,1059,685))
- 
- if exists (Pattern("1452165008359.png").similar(0.76),  0): hover 
(getLastMatch())
- if exists ("1452165060367.png", 0): click(getLastMatch()) 
+ Settings.ObserveScanRate = 18
+ Settings.WaitScanRate = 15
+ Settings.MoveMouseDelay = 0
+ Settings.MouseDelay = 0
  
- There's about eight more if exists with pictures in it but that's the code. 
+ CurrentBarRegion = ( Region(689,294,1059,685))
+ 
+ if exists (Pattern("1452165008359.png").similar(0.76),  0): hover 
(getLastMatch())
+ if exists ("1452165060367.png", 0): click(getLastMatch())
+ 
+ There's about eight more if exists with pictures in it but that's the code.
  Some thought as to why Sikulix is slow: all images are very similar with 
light blue colors, seems Sikulix doesn't like light blue that much. Maybe the 
method I'm using is bad and slowing down the process as well. Could try using 
text search possibly, all buttons have big text in them.
  
-  Pictures are all high quality, my monitor is  24 inches, 1920x1080
+  Pictures are all high quality, my monitor is  24 inches, 1920x1080
  resolution, lots of ram good CPU etc so it can't be due to that. If
  anyone can help me speed up Sikulix by showing me how to put in region
  properly or another method I'd greatly appreciate it. Thanks!

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  [1.1.0] Possible memory leak with Region objects in long running
  Jython scripts

Status in Sikuli:
  In Progress

Bug description:
  * for more information see the related question

  

  I've been trying to make a script that looks for specific images, clicks on 
them, and then clicks on the next button after that.
  Currently, it does th

Re: [Sikuli-driver] [Question #280792]: Sikuli on 4K screens

2016-01-10 Thread RaiMan
Question #280792 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280792

Status: Open => Solved

RaiMan changed the question status:
Uuuups, yes.

--- font size of the menu's: isn't that a system option somewhere?

--- messages fontsize: ok, there should be an option

I make this a request bug.

-- 
You received this question notification because your team Sikuli Drivers
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 #280792]: Status of bug #1532617 changed to 'In Progress' in Sikuli

2016-01-10 Thread RaiMan
Bug #1532617 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1532617
"[request] IDE: font sizes of menus, commands and messages should be changeable 
too (4K screens)"

This bug is linked to #280792.
Sikuli on 4K screens
https://answers.launchpad.net/sikuli/+question/280792

-- 
You received this question notification because your team Sikuli Drivers
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 #280792]: Sikuli on 4K screens

2016-01-10 Thread RaiMan
Question #280792 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280792

Linked to bug: #1532617
https://bugs.launchpad.net/bugs/1532617
"[request] IDE: font sizes of menus, commands and messages should be 
changeable too (4K screens)"

-- 
You received this question notification because your team Sikuli Drivers
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 1532617] [NEW] [request] IDE: font sizes of menus, commands and messages should be changeable too (4K screens)

2016-01-10 Thread RaiMan
Public bug reported:

I'm running the Sikuli IDE on a laptop with a 4k screen, and as is the
case with many applications on such screens, fonts do not scale well.
They are too small for me to be able to use the IDE.

I don't see any "zoom" or "increase font size" option, is there a
workaround ?

Thanks.

** Affects: sikuli
 Importance: Medium
 Assignee: RaiMan (raimund-hocke)
 Status: In Progress

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  [request] IDE: font sizes of menus, commands and messages should be
  changeable too (4K screens)

Status in Sikuli:
  In Progress

Bug description:
  I'm running the Sikuli IDE on a laptop with a 4k screen, and as is the
  case with many applications on such screens, fonts do not scale well.
  They are too small for me to be able to use the IDE.

  I don't see any "zoom" or "increase font size" option, is there a
  workaround ?

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1532617/+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 #280827]: Java: NPE, when running jar on other system, when sikulixapi.jar is packed with the jar

2016-01-11 Thread RaiMan
Question #280827 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280827

Summary changed to:
Java: NPE, when running jar on other system, when sikulixapi.jar is packed with 
the jar

-- 
You received this question notification because your team Sikuli Drivers
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 #280827]: Java: NPE, when running jar on other system having sikulixapi.jar packed with the jar

2016-01-11 Thread RaiMan
Question #280827 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280827

Summary changed to:
Java: NPE, when running jar on other system having sikulixapi.jar packed with 
the jar

-- 
You received this question notification because your team Sikuli Drivers
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 #280827]: Status of bug #1532709 changed to 'In Progress' in Sikuli

2016-01-11 Thread RaiMan
Bug #1532709 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1532709
"[1.1.0] Java: NPE, when running jar on other system having sikulixapi.jar 
packed with the jar"

This bug is linked to #280827.
Java: NPE, when running jar on other system having sikulixapi.jar packed with 
the jar
https://answers.launchpad.net/sikuli/+question/280827

-- 
You received this question notification because your team Sikuli Drivers
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 #280827]: Java: NPE, when running jar on other system having sikulixapi.jar packed with the jar

2016-01-11 Thread RaiMan
Question #280827 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280827

Status: Open => Answered

RaiMan proposed the following answer:
I guess this is a bug (I never tested this option).

workaround:
- do not pack sikulixapi.jar with your app jar
- copy sikulixapi.jar to the other system to any place you like (must be same 
system type!)
- at runtime of your app jar have a pointer to sikulixapi.jar in your class path

-- 
You received this question notification because your team Sikuli Drivers
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 #280827]: Java: NPE, when running jar on other system having sikulixapi.jar packed with the jar

2016-01-11 Thread RaiMan
Question #280827 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280827

Status: Answered => Solved

RaiMan changed the question status:
made it a bug

-- 
You received this question notification because your team Sikuli Drivers
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 #280827]: Java: NPE, when running jar on other system having sikulixapi.jar packed with the jar

2016-01-11 Thread RaiMan
Question #280827 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280827

Linked to bug: #1532709
https://bugs.launchpad.net/bugs/1532709
"[1.1.0] Java: NPE, when running jar on other system having sikulixapi.jar 
packed with the jar"

-- 
You received this question notification because your team Sikuli Drivers
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 1532709] [NEW] [1.1.0] Java: NPE, when running jar on other system having sikulixapi.jar packed with the jar

2016-01-11 Thread RaiMan
Public bug reported:

 workaround see related question



I Installed sikulix in my system with option 2...i used the generated api to 
develop my selenium scriptThen i exported my project into runnable jar file 
with all the external jars attached.
Then i installed sikulix using 2nd option in another system...also using windows

and then i tried to run the exported jar file in the new system...But
getting error :

 :Exception in thread "main"
java.lang.reflect.InvocationTargetException...Caused by : java.lang.Null
pointer Exception

** Affects: sikuli
 Importance: Medium
 Assignee: RaiMan (raimund-hocke)
 Status: In Progress

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  [1.1.0] Java: NPE, when running jar on other system having
  sikulixapi.jar packed with the jar

Status in Sikuli:
  In Progress

Bug description:
   workaround see related question

  

  I Installed sikulix in my system with option 2...i used the generated api to 
develop my selenium scriptThen i exported my project into runnable jar file 
with all the external jars attached.
  Then i installed sikulix using 2nd option in another system...also using 
windows

  and then i tried to run the exported jar file in the new system...But
  getting error :

   :Exception in thread "main"
  java.lang.reflect.InvocationTargetException...Caused by :
  java.lang.Null pointer Exception

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1532709/+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 #280826]: Sikulix installation problem using command line

2016-01-11 Thread RaiMan
Question #280826 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280826

Status: Open => Needs information

RaiMan requested more information:
--- installing sikulix using command line
... how did you do that exactly?
... what version?

-- 
You received this question notification because your team Sikuli Drivers
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 #280746]: Status of bug #1532730 changed to 'In Progress' in Sikuli

2016-01-11 Thread RaiMan
Bug #1532730 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1532730
"[1.1.0] IDE: image files are deleted when saving script with existing name 
(overwrite)"

This bug is linked to #280746.
 image files are deleted when saving script with existing name (overwrite)
https://answers.launchpad.net/sikuli/+question/280746

-- 
You received this question notification because your team Sikuli Drivers
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 #280746]: image files are deleted when saving script with existing name (overwrite)

2016-01-11 Thread RaiMan
Question #280746 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280746

Linked to bug: #1532730
https://bugs.launchpad.net/bugs/1532730
"[1.1.0] IDE: image files are deleted when saving script with existing name 
(overwrite)"

-- 
You received this question notification because your team Sikuli Drivers
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 #280746]: image files are deleted when saving script with existing name (overwrite)

2016-01-11 Thread RaiMan
Question #280746 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280746

Summary changed to:
 image files are deleted when saving script with existing name (overwrite)

-- 
You received this question notification because your team Sikuli Drivers
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 #280746]: image files are deleted when saving script with existing name (overwrite)

2016-01-11 Thread RaiMan
Question #280746 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280746

Status: Open => Solved

RaiMan changed the question status:
made it a bug

-- 
You received this question notification because your team Sikuli Drivers
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 #280746]: image files are deleted when saving script with existing name (overwrite)

2016-01-11 Thread RaiMan
Question #280746 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280746

RaiMan posted a new comment:
thanks for finding

-- 
You received this question notification because your team Sikuli Drivers
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 1532730] [NEW] [1.1.0] IDE: image files are deleted when saving script with existing name (overwrite)

2016-01-11 Thread RaiMan
Public bug reported:

(1)save script named "script01" (by [save as...])
script01.sikuli is created.
there is image file.

(2)open "script01"

(3)again save script named "script01" (by [save as...] instead of by [save])
script01.sikuli is exists.
there is not image file.

** Affects: sikuli
 Importance: High
 Assignee: RaiMan (raimund-hocke)
 Status: In Progress

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  [1.1.0] IDE: image files are deleted when saving script with existing
  name (overwrite)

Status in Sikuli:
  In Progress

Bug description:
  (1)save script named "script01" (by [save as...])
  script01.sikuli is created.
  there is image file.

  (2)open "script01"

  (3)again save script named "script01" (by [save as...] instead of by [save])
  script01.sikuli is exists.
  there is not image file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1532730/+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


[Sikuli-driver] [Question #280672]: Status of bug #1533134 changed to 'Fix Committed' in Sikuli

2016-01-12 Thread RaiMan
Bug #1533134 status changed in Sikuli:

New => Fix Committed

https://bugs.launchpad.net/sikuli/+bug/1533134
"[1.1.0] comand line quoted parameters: single quotes should work too"

This bug is linked to #280672.
comand line quoted parameters don't work
https://answers.launchpad.net/sikuli/+question/280672

-- 
You received this question notification because your team Sikuli Drivers
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 #280672]: comand line quoted parameters don't work

2016-01-12 Thread RaiMan
Question #280672 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280672

Linked to bug: #1533134
https://bugs.launchpad.net/bugs/1533134
"[1.1.0] comand line quoted parameters: single quotes should work too"

-- 
You received this question notification because your team Sikuli Drivers
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 1533134] [NEW] [1.1.0] comand line quoted parameters: single quotes should work too

2016-01-12 Thread RaiMan
Public bug reported:

* workaround

use double-quotes

-

I wrote a simple test por pass user parameters by command line in
Windows. For one-word parameters it works ok, but when I quote
parameters to include spaces in values, sikulix is ignoring my quotes.
In fact it treats quotes as part of each parameter, as it does to any
other character.

The command line used is like this:
runsikulix.cmd -r  -- 'par 1' 'par 2'

My script is this:
import sys
for arg in sys.argv:
print arg
popup("see what u got.")

The result is this:
'par
1'
'par
2'

So, I conclude that sikulix treated my command line as containing 4
parameters.

I'm using Sikulix 1.1.0 Build: 2015-09-15_01:00nightly

** Affects: sikuli
 Importance: High
 Assignee: RaiMan (raimund-hocke)
 Status: Fix Committed

** Changed in: sikuli
   Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

** Description changed:

+ * workaround
+ 
+ use double-quotes
+ 
+ -
+ 
  I wrote a simple test por pass user parameters by command line in
  Windows. For one-word parameters it works ok, but when I quote
  parameters to include spaces in values, sikulix is ignoring my quotes.
  In fact it treats quotes as part of each parameter, as it does to any
  other character.
  
  The command line used is like this:
  runsikulix.cmd -r  -- 'par 1' 'par 2'
  
  My script is this:
  import sys
  for arg in sys.argv:
- print arg
+ print arg
  popup("see what u got.")
  
  The result is this:
  'par
  1'
  'par
  2'
  
  So, I conclude that sikulix treated my command line as containing 4
  parameters.
  
  I'm using Sikulix 1.1.0 Build: 2015-09-15_01:00nightly

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

Title:
  [1.1.0] comand line quoted parameters: single quotes should work too

Status in Sikuli:
  Fix Committed

Bug description:
  * workaround

  use double-quotes

  -

  I wrote a simple test por pass user parameters by command line in
  Windows. For one-word parameters it works ok, but when I quote
  parameters to include spaces in values, sikulix is ignoring my quotes.
  In fact it treats quotes as part of each parameter, as it does to any
  other character.

  The command line used is like this:
  runsikulix.cmd -r  -- 'par 1' 'par 2'

  My script is this:
  import sys
  for arg in sys.argv:
  print arg
  popup("see what u got.")

  The result is this:
  'par
  1'
  'par
  2'

  So, I conclude that sikulix treated my command line as containing 4
  parameters.

  I'm using Sikulix 1.1.0 Build: 2015-09-15_01:00nightly

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1533134/+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 #280903]: [1.1.0] java.lang.IllegalArgumentException: Cannot create PyString with non-byte value

2016-01-13 Thread RaiMan
Question #280903 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280903

Status: Open => Answered

RaiMan proposed the following answer:
in Python strings the \ is an escape character and must be doubled if
used as a real character:

with open("C:\\error_log", "a") as f:

an alternative is to use so called raw strings, where every character is
real, but a \ must not be the last character:

with open(r"C:\error_log", "a") as f:

-- 
You received this question notification because your team Sikuli Drivers
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 #280915]: Auto generated images names causes a problem

2016-01-13 Thread RaiMan
Question #280915 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280915

Linked to bug: #1529457
https://bugs.launchpad.net/bugs/1529457
"Auto generated images names causes a problem"

-- 
You received this question notification because your team Sikuli Drivers
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 #280915]: Auto generated images names causes a problem

2016-01-13 Thread RaiMan
Question #280915 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280915

Status: Open => Solved

RaiMan changed the question status:
the discussion is in the related bug.

-- 
You received this question notification because your team Sikuli Drivers
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 #280915]: Status of bug #1529457 changed to 'In Progress' in Sikuli

2016-01-13 Thread RaiMan
Bug #1529457 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1529457
"[request] IDE: Auto generated image names using image = should not overwrite."

This bug is linked to #280915.
Auto generated images names causes a problem 
https://answers.launchpad.net/sikuli/+question/280915

-- 
You received this question notification because your team Sikuli Drivers
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 1529457] Re: [request] IDE: Auto generated image names using image = should not overwrite.

2016-01-13 Thread RaiMan
** Summary changed:

- Auto generated images names causes a problem
+ [request] IDE: Auto generated image names using image = should not overwrite.

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 2.0.0

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

Title:
  [request] IDE: Auto generated image names using image = should not
  overwrite.

Status in Sikuli:
  In Progress

Bug description:
  In the new sikuli 1.1 there is a nice feature that automatically names your 
images.
  For example

  class screenDialog1:
  button_OK =

  If you put your cursor after "=" and take a image the name will aromatically 
generated -> button_OK.png
  That excellent idea however there is a problem
  In a bigger UI map you will definitely have more dialogues screen with 
different buttons... like this:

  class screenDialog1:
  button_OK = "button_OK.png"
  class screenDialog2:
  button_OK =

  now if you put your cursor on after "=" on the second button_OK and
  try to get image you will mess up your UI map without even knowing it.
  The problem is that sikuli will again generate "button_OK.png" and
  will replace the first one. There is no warning and even no visual
  change in in the first button until you reload sikuli.

  Suggested fix:
  - when image already exist just pop up dialogue for user to enter different 
name
  or
  - in old 1.0 sikuli there was automatic indexation 1,2,3 etc
  or
  - if you are in a class you may compose image name like this: 
screenDialog1.button_OK.png

  Happy holidays
  Neven

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1529457/+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


[Sikuli-driver] [Bug 1529457] Re: [request] IDE: Auto generated image names using image = should not overwrite.

2016-01-13 Thread RaiMan
I will revise this feature in version 2.0 to have more options.
I plan to support image groups, where a group is represented by an image folder.
And the support for capturing images and organize them will be a separate app, 
so it can be used for all situations including the IDE.

But for now you have to live with that "by design" effect:
If you want to use this feature, you have to follow your own naming convention, 
to assure, that your images are not messed up.

in your case:

class screenDialog1:
screenDialog1_button_OK = "button_OK.png"
class screenDialog2:
screenDialog2_button_OK =

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

Title:
  [request] IDE: Auto generated image names using image = should not
  overwrite.

Status in Sikuli:
  In Progress

Bug description:
  In the new sikuli 1.1 there is a nice feature that automatically names your 
images.
  For example

  class screenDialog1:
  button_OK =

  If you put your cursor after "=" and take a image the name will aromatically 
generated -> button_OK.png
  That excellent idea however there is a problem
  In a bigger UI map you will definitely have more dialogues screen with 
different buttons... like this:

  class screenDialog1:
  button_OK = "button_OK.png"
  class screenDialog2:
  button_OK =

  now if you put your cursor on after "=" on the second button_OK and
  try to get image you will mess up your UI map without even knowing it.
  The problem is that sikuli will again generate "button_OK.png" and
  will replace the first one. There is no warning and even no visual
  change in in the first button until you reload sikuli.

  Suggested fix:
  - when image already exist just pop up dialogue for user to enter different 
name
  or
  - in old 1.0 sikuli there was automatic indexation 1,2,3 etc
  or
  - if you are in a class you may compose image name like this: 
screenDialog1.button_OK.png

  Happy holidays
  Neven

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1529457/+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


[Sikuli-driver] [Bug 1532541] Re: [1.1.0] Possible memory leak with Region objects in long running Jython scripts

2016-01-13 Thread RaiMan
great thanks for the finding.

This surely helps, to at least get a point, where to start the
debugging.

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

Title:
  [1.1.0] Possible memory leak with Region objects in long running
  Jython scripts

Status in Sikuli:
  In Progress

Bug description:
  * for more information see the related question

  

  I've been trying to make a script that looks for specific images, clicks on 
them, and then clicks on the next button after that.
  Currently, it does that - but it's incredibly slow, it can take up to two 
minutes just to click on 4-6 images/buttons. Overall there are about 10 images 
it's looking for all at once as they randomly pop up.

  I've tried adding a region to my code to help speed it up  but I couldn't 
figure it out as I'm extremely new to even the most basic of script writing. 
Below is the code I'm currently using:
  while True:
  Settings.ObserveScanRate = 18
  Settings.WaitScanRate = 15
  Settings.MoveMouseDelay = 0
  Settings.MouseDelay = 0

  CurrentBarRegion = ( Region(689,294,1059,685))

  if exists (Pattern("1452165008359.png").similar(0.76),  0): hover 
(getLastMatch())
  if exists ("1452165060367.png", 0): click(getLastMatch())

  There's about eight more if exists with pictures in it but that's the code.
  Some thought as to why Sikulix is slow: all images are very similar with 
light blue colors, seems Sikulix doesn't like light blue that much. Maybe the 
method I'm using is bad and slowing down the process as well. Could try using 
text search possibly, all buttons have big text in them.

   Pictures are all high quality, my monitor is  24 inches, 1920x1080
  resolution, lots of ram good CPU etc so it can't be due to that. If
  anyone can help me speed up Sikulix by showing me how to put in region
  properly or another method I'd greatly appreciate it. Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1532541/+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 #280961]: How to create a master script for different scenarios

2016-01-14 Thread RaiMan
Question #280961 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280961

Status: Open => Answered

RaiMan proposed the following answer:
look here:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other

needs version 1.1.0

-- 
You received this question notification because your team Sikuli Drivers
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 #280949]: Recognizing bad returns from Region.text()

2016-01-14 Thread RaiMan
Question #280949 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280949

Status: Open => Answered

RaiMan proposed the following answer:
the easiest:

str = myRegion.text()
try:
myNum = float(str)
except:
myNum = 0 # or some other not possible value or 
if myNum == 0:
# do some error handling
myNum = myNum + 5.0
print myNum

-- 
You received this question notification because your team Sikuli Drivers
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 #280903]: [1.1.0] java.lang.IllegalArgumentException: Cannot create PyString with non-byte value

2016-01-14 Thread RaiMan
Question #280903 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280903

Status: Open => Answered

RaiMan proposed the following answer:
LOL, you must have eagle eyes, to see the problem:

f.write(“Success")

carefully look at the opening apostrophe: that is illegal!

so this should work:
f.write("Success")

... but I just realized, that in the IDE “Success" is not colored as a
string - I have to admit: I did not see that either.

-- 
You received this question notification because your team Sikuli Drivers
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 #280883]: How can I disable error logs in sikuli?

2016-01-14 Thread RaiMan
Question #280883 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280883

Status: Open => Answered

RaiMan proposed the following answer:
Region(0,940,1920,140)

on a screen with 1600x900 apparently lies outside the screen (below
bottom!)

So this is an error, that should be corrected.

check your region resize coding.

-- 
You received this question notification because your team Sikuli Drivers
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 #280908]: exists returns true even if the image doesnt exist

2016-01-14 Thread RaiMan
Question #280908 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280908

Status: Open => Needs information

RaiMan requested more information:
did you already use highlight() to see, what SikuliX thinks to be a
match?

Are you sure that 0.9 is enough?

-- 
You received this question notification because your team Sikuli Drivers
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 1533494] Re: [request] want system appropriate installer for setup

2016-01-14 Thread RaiMan
Sorry, but I will not do this for version 1.1.x

** Summary changed:

- suggest
+ [request] want system appropriate installer for setup

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 2.0.0

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

Title:
  [request] want system appropriate installer for setup

Status in Sikuli:
  In Progress

Bug description:
  Hello,
   Sikuli 1.1 can release a installer Windows?
  personal feel Sikuli two development and use more convenient

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1533494/+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 #280883]: How can I disable error logs in sikuli?

2016-01-14 Thread RaiMan
Question #280883 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280883

Status: Open => Answered

RaiMan proposed the following answer:
bottom = Region(0,940,1920,140)
this produces the error and should be avoided, if you do not want the error on 
non-appropriate screen.

So let us fix it and additionally get better Python:

def adaptToScreenResolution(rx, ry, rw, rh):
resizeFactorX = SCREEN.w/1920
resizeFactorY = SCREEN.h/1080
x = int(rx*resizeFactorX)
y = int(ry*resizeFactorY)
   w = int(rw*resizeFactorX)
h = int(rh*resizeFactorY)
return Region(x, y, w, h)

bottom = adaptToScreenResolution(0, 940, 1920, 140)

-- 
You received this question notification because your team Sikuli Drivers
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 1534424] Re: IDE Deleting Used Pattern Image Files

2016-01-15 Thread RaiMan
When using final version 1.1.0, then this should not be.
So please give more details about the situation, when that happens.

In doubt set the respective Preferences -> more options option
respectively.

There is one case left, where it may happen though:
bug 1532730

** Changed in: sikuli
   Status: New => Opinion

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  IDE Deleting Used Pattern Image Files

Status in Sikuli:
  Opinion

Bug description:
  I have noticed my IDE ended up deleting used pattern image files, ie.
  it is deleting image files that are used by the script.  If I do not
  backup existing project those image files are permanently gone which
  is very frustrating because I have re create those images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1534424/+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


[Sikuli-driver] [Bug 1460616] Re: [1.1.0] Error saving file in IDE in special situation (copy&paste code snippet)

2016-01-15 Thread RaiMan
** Summary changed:

- Error saving files in IDE
+ [1.1.0] Error saving file in IDE in special situation (copy&paste code 
snippet)

** Changed in: sikuli
   Status: Confirmed => In Progress

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

** Description changed:

+  the special situation 
+ from comment #14 and #15
+ 
+ This happened when I ran without saving a snipped of test code in New
+ ->Untitled tab. Then copied those code to existing saved tab. When I
+ tried to save the existing saved tabbed with snipped of Untitled tab
+ this happened for me.
+ 
+ 
+ 
  I have finally been able to make a minimal test case for when IDE fails
  to save the file:
- 
  
  # -*- coding: utf-8 -*-
  import sys
  from sikuli import *
  from sikuli.Sikuli import *
  sys.path.append(projectPath)
  
  def testMessageEdit():
- assert()
+ assert()
  
-message21 = TableCell()
- FilterTable.clickMessage(message21)
- wait(2)
+    message21 = TableCell()
+ FilterTable.clickMessage(message21)
+ wait(2)
  
  if __name__ == "__main__":
- testMessageEdit()
- 
+ testMessageEdit()
  
  Try entering the code above in a new file and save. It will report:
  [error] IDE: A non-IOException-problem when trying to save null Error: null
  
  This happens way too often and usually in files not as obvious as this
  one. It is so bad that I mostly have to work in notepad++ and only run
  scripts from IDE.

** Changed in: sikuli
   Importance: Undecided => High

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

Title:
  [1.1.0] Error saving file in IDE in special situation (copy&paste code
  snippet)

Status in Sikuli:
  In Progress

Bug description:
   the special situation 
  from comment #14 and #15

  This happened when I ran without saving a snipped of test code in New
  ->Untitled tab. Then copied those code to existing saved tab. When I
  tried to save the existing saved tabbed with snipped of Untitled tab
  this happened for me.

  

  I have finally been able to make a minimal test case for when IDE
  fails to save the file:

  # -*- coding: utf-8 -*-
  import sys
  from sikuli import *
  from sikuli.Sikuli import *
  sys.path.append(projectPath)

  def testMessageEdit():
  assert()

     message21 = TableCell()
  FilterTable.clickMessage(message21)
  wait(2)

  if __name__ == "__main__":
  testMessageEdit()

  Try entering the code above in a new file and save. It will report:
  [error] IDE: A non-IOException-problem when trying to save null Error: null

  This happens way too often and usually in files not as obvious as this
  one. It is so bad that I mostly have to work in notepad++ and only run
  scripts from IDE.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1460616/+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


[Sikuli-driver] [Bug 1506359] Re: [1.1.0] Linux: not working wmctrl should not terminate SikuliX, but only block App class usage --- fixed 1.1.1-2015-10-17

2016-01-15 Thread RaiMan
@Gizmo
ok, thanks for the pointer. I will again have a look.

Have you checked, wether the App class functions work?

what Linux?

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

Title:
  [1.1.0] Linux: not working wmctrl should not terminate SikuliX, but
  only block App class usage --- fixed 1.1.1-2015-10-17

Status in Sikuli:
  Fix Released

Bug description:
  Trying to run Sikuli 1.1.0 on CentOS7

  Managed to get all required RPMs installed an running the following on
  a remote server forwarding the X session via SSH to a local Windows-
  based X server (XLaunch)

  Managed to run the setup, after that I am getting as follows:

  [sikuli@localhost src]$ ./runsikulix
  running SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
  -jar ./sikulix.jar
  [info] runcmd: lsb_release -i -r -s
  [error] RunTimeINIT: fatal error: java.io.IOException: Cannot run program 
"lsb_release": error=2, No such file or directory
  [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
  [info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
  [error] RunTimeIDE:  *** terminating: command 'wmctrl' is not executable
  please check the Availability!
  [sikuli@localhost src]$ which wmctrl
  /usr/bin/wmctrl
  [sikuli@localhost src]$ wmctrl -V
  1.07
  [sikuli@localhost src]$

  Cant really figure out this one - could this be a case of wmctrl
  requiring some kind of desktop environment or windows management
  system running? Im running raw X session - nothing on top of it and
  could run Setup just fine.

  Thanks, 
  Marcel

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1506359/+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 #281134]: openApp failed file not found

2016-01-18 Thread RaiMan
Question #281134 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281134

Status: Open => Answered

RaiMan proposed the following answer:
A .txt file cannot be opened this way.

You have to issue a start command using run.

But why do you not use the user logging feature for this?

-- 
You received this question notification because your team Sikuli Drivers
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 #186644]: screen type some times misses the characters

2016-01-21 Thread RaiMan
Question #186644 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/186644

RaiMan proposed the following answer:
I am rather sure, that this SikuliSharp does not wrap the latest SikuliX.
Since Sikuli before 1.1.0 is no longer supported, I cannot help you.

-- 
You received this question notification because your team Sikuli Drivers
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 #281167]: How to get the equivalent special key of RETUN button in IOS Simulator(XCODE)?

2016-01-21 Thread RaiMan
Question #281167 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281167

Status: Open => Answered

RaiMan proposed the following answer:
scan this forum, I remember, that there was a solution for that.

Alternatively: stackoverflow

-- 
You received this question notification because your team Sikuli Drivers
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 #281176]: Confusion between two images

2016-01-21 Thread RaiMan
Question #281176 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281176

RaiMan proposed the following answer:
look here:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#Settings.MinSimilarity

and set the default to 0.9.

So you only have to use Pattern(image).similar(x.y) where needed.

You might also switch the IDE to text mode (menu view), to see the
script code.

-- 
You received this question notification because your team Sikuli Drivers
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 #281180]: Status of bug #1536759 changed to 'Fix Committed' in Sikuli

2016-01-21 Thread RaiMan
Bug #1536759 status changed in Sikuli:

New => Fix Committed

https://bugs.launchpad.net/sikuli/+bug/1536759
"[1.1.0] click(exists()) always return True"

This bug is linked to #281180.
click(exists()) always return True
https://answers.launchpad.net/sikuli/+question/281180

-- 
You received this question notification because your team Sikuli Drivers
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 #281180]: click(exists()) always return True

2016-01-21 Thread RaiMan
Question #281180 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281180

Status: Open => Solved

RaiMan changed the question status:
made it a bug

-- 
You received this question notification because your team Sikuli Drivers
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 #281180]: click(exists()) always return True

2016-01-21 Thread RaiMan
Question #281180 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281180

Linked to bug: #1536759
https://bugs.launchpad.net/bugs/1536759
"[1.1.0] click(exists()) always return True"

-- 
You received this question notification because your team Sikuli Drivers
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 1536759] [NEW] [1.1.0] click(exists()) always return True

2016-01-21 Thread RaiMan
Public bug reported:

Hi,
Usually Im using code something like this:

if not click(exists('some_image')):
# do some actions to make image visible
click('some_image')

But after update to version 1.1.0 ive noticed that
click(exists('some_nonexistent_image')) always return True. Checked in
version 1.0.1 - False was returned.

Is it normal behavior? Should I wait for some fix or update my scripts
to "if exists > else" ? Or maybe im not using it right?

BTW thanks for great automation tool RaiMan )))

** Affects: sikuli
 Importance: High
 Assignee: RaiMan (raimund-hocke)
 Status: Fix Committed

** Changed in: sikuli
   Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  [1.1.0] click(exists()) always return True

Status in Sikuli:
  Fix Committed

Bug description:
  Hi,
  Usually Im using code something like this:

  if not click(exists('some_image')):
  # do some actions to make image visible
  click('some_image')

  But after update to version 1.1.0 ive noticed that
  click(exists('some_nonexistent_image')) always return True. Checked in
  version 1.0.1 - False was returned.

  Is it normal behavior? Should I wait for some fix or update my scripts
  to "if exists > else" ? Or maybe im not using it right?

  BTW thanks for great automation tool RaiMan )))

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1536759/+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 #281182]: Null pointer exception using Sikuli in Java

2016-01-22 Thread RaiMan
Question #281182 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281182

Status: Open => Answered

RaiMan proposed the following answer:
I have no idea, why this happens in your special setup.

the code in org.sikuli.script.RunTime

CodeSource codeSrc = clsRef.getProtectionDomain().getCodeSource();
String base = null;
if (codeSrc != null && codeSrc.getLocation() != null) {
  base = FileManager.slashify(codeSrc.getLocation().getPath(), false);
}
appType = "from a jar";
if (base != null) {
  fSxBaseJar = new File(base);
  String jn = fSxBaseJar.getName();
  fSxBase = fSxBaseJar.getParentFile();
  log(lvl, "runs as %s in: %s", jn, fSxBase.getAbsolutePath());
  if (jn.contains("classes")) {

where the last line is the crash point (line 635)

it only gets there, if base is != null and I have no idea, why jn can be
null at this place.

The only idea:
base at this point might be be an empty string, but File.getName() according to 
the API, does not return null.

Did you have the log message, that is produced before the crashing line:
 runs as  in: 

if not, then try to add 
-Dsikuli.Debug=3
to the Java environment

I am sorry, but I have no means, to test the behavior in such
environment, that you are using.

-- 
You received this question notification because your team Sikuli Drivers
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 #281182]: Null pointer exception using Sikuli in Java

2016-01-22 Thread RaiMan
Question #281182 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281182

RaiMan proposed the following answer:
Thanks for testing, but ...

--1. the log message:
 runs as  in:  (produced by  log(lvl, "runs as %s in: %s", jn, 
fSxBase.getAbsolutePath()); )
is missing in the log you gave me.

--2. in your test with a correct environment setup (only sikulixapi.jar
is on class path), clsRef should be null, since neither clsRef =
Class.forName("org.sikuli.ide.SikuliIDE"); nor clsRef =
Class.forName("org.sikuli.setup.RunSetup"); should work.

I see 2 aspects:
- purge SIKULI_HOME from your environment (SikuliX 1.1.0+ does not need nor use 
that any more). So if you accidentally have other references to "wrong" Sikuli 
stuff, then you should get other errors.
- take care, that neither sikulix.jar nor the sikulixsetup...jar is on class 
path at runtime.

Take care that you are using the final 1.1.0, otherwise I cannot help
you.

You are saying, you are running a Maven project: Is sikulixapi.jar
referenced so that it is taken from MavenCentral?

-- 
You received this question notification because your team Sikuli Drivers
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 #281263]: How to run .py file using interactive window

2016-01-22 Thread RaiMan
Question #281263 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281263

Status: Open => Needs information

RaiMan requested more information:
what does this mean: interactive window?

-- 
You received this question notification because your team Sikuli Drivers
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 #281269]: How to click with the wheel ?

2016-01-22 Thread RaiMan
Question #281269 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281269

Status: Open => Answered

RaiMan proposed the following answer:
Not a feature currently.

You have to step down to the Java level and use the Java AWT Robot
class.

-- 
You received this question notification because your team Sikuli Drivers
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 878864] Re: [request] want Pattern.anySize() and Pattern.anyColor()

2016-01-22 Thread RaiMan
The only thing I can do in the moment, to accept this as a request for
version 2 (no target date currently).

@Chathura
Do you have an example for me including screenshots and the detailed 
environment description?

** Changed in: sikuli
Milestone: None => 2.0.0

** Changed in: sikuli
   Importance: Wishlist => Medium

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

Title:
  [request] want Pattern.anySize() and Pattern.anyColor()

Status in Sikuli:
  In Progress

Bug description:
  as a general solution, Sikuli needs to know, how the image should be
  rescaled.

  the same image is found in different screen resolutions by Sikuli
  though.

  --- 
  based on the original description of the planned Sikuli features:

  anySize() was supossed to solve different resolutions problems.

  But it is not yet available in Sikuli script.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/878864/+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 #186644]: screen type some times misses the characters

2016-01-22 Thread RaiMan
Question #186644 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/186644

Status: Answered => Solved

RaiMan changed the question status:
user takes care himself

-- 
You received this question notification because your team Sikuli Drivers
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 #282135]: Typing fraction Value

2016-01-22 Thread RaiMan
Question #282135 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/282135

Status: Open => Answered

RaiMan proposed the following answer:
type("%.7f"%value)

-- 
You received this question notification because your team Sikuli Drivers
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 #280972]: Spacing issue when using .text() feature

2016-01-22 Thread RaiMan
Question #280972 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280972

RaiMan proposed the following answer:
Sorry no.
Sometime during second half this year (possibly earlier in nightly builds of 
version 2)

-- 
You received this question notification because your team Sikuli Drivers
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 1269650] Re: [1.0.1] getBundlePath() adds extra slash at end --- fixed in 1.1.0

2016-01-22 Thread RaiMan
@Jay
I do not know where you get that.

if you have something like that
someFolder/someBundle.sikuli

then exactly someBundle.sikuli is the folder containing the "bundle-
stuff"

... and this is returned by getBundlePath()

so if you want to access something inside the bundle:
myStuff = os.path.join(getBundlePath(), "myStuff.xxx")

supposing:
someFolder/someBundle.sikuli/myStuff.xxx

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

Title:
  [1.0.1] getBundlePath() adds extra slash at end --- fixed in 1.1.0

Status in Sikuli:
  Fix Committed

Bug description:
  Using getBundlePath() yields "/path/to/bundle.sikuli/ " as opposed to
  "/path/to/bundle.sikuli", which was the behavior in previous versions.

  Because of this change, os.path.dirname(getBundlePath()) stops giving
  you "/path/to" and instead gives you '/path/to/bundle.sikuli", which a
  rather annoying inconvenience.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1269650/+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 #281182]: Null pointer exception using Sikuli in Java

2016-01-22 Thread RaiMan
Question #281182 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281182

Status: Open => Answered

RaiMan proposed the following answer:
Your dependency pulls the final 1.1.0

1.1.1 does not make a difference about that problem.

Repeat your test from comment #6 now using
Class clsRef = Class.forName("org.sikuli.script.RunTime");

leaving out the 2 try/catch blocks

-- 
You received this question notification because your team Sikuli Drivers
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 #282135]: Typing fraction Value

2016-01-22 Thread RaiMan
Question #282135 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/282135

Status: Open => Answered

RaiMan proposed the following answer:
ok, then you have to create a function, that gets a value (int or
float), analyst it, dynamically build the format string and then return
the formatted string.

Should all be easily possible with standard Python features.

-- 
You received this question notification because your team Sikuli Drivers
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 #281182]: Null pointer exception using Sikuli in Java

2016-01-22 Thread RaiMan
Question #281182 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281182

RaiMan proposed the following answer:
This is mainly for getting the resource location for exporting resources
in the different runtime situations (from jar, from Maven or standard
project context in Java IDE's, ).

Ok, I understand, that I should add the awareness of OSGI in version 2.
But currently I am without any knowledge about this area.

-- 
You received this question notification because your team Sikuli Drivers
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 #281182]: Null pointer exception using Sikuli in Java

2016-01-22 Thread RaiMan
Question #281182 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281182

RaiMan posted a new comment:
Thanks for the input. I will try to understand and somehow add it or at least 
the information.
Very appreciated.

-- 
You received this question notification because your team Sikuli Drivers
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 #281182]: Status of bug #1537216 changed to 'In Progress' in Sikuli

2016-01-22 Thread RaiMan
Bug #1537216 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1537216
"[request] sikulixapi.jar should be useable with OSGI"

This bug is linked to #281182.
Null pointer exception using Sikuli in Java
https://answers.launchpad.net/sikuli/+question/281182

-- 
You received this question notification because your team Sikuli Drivers
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 #281182]: Null pointer exception using Sikuli in Java

2016-01-22 Thread RaiMan
Question #281182 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281182

Linked to bug: #1537216
https://bugs.launchpad.net/bugs/1537216
"[request] sikulixapi.jar should be useable with OSGI"

-- 
You received this question notification because your team Sikuli Drivers
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 1537216] [NEW] [request] sikulixapi.jar should be useable with OSGI

2016-01-22 Thread RaiMan
Public bug reported:

** see related question

Hi,

I am facing a null pointer exception when trying to use sikuli api in my
project:

java.lang.ExceptionInInitializerError
 at 
eu.iac3.mathMS.guiTestingTest.GuiTestingTest.testEditor(GuiTestingTest.java:144)
Caused by: java.lang.NullPointerException
 at org.sikuli.script.RunTime.init(RunTime.java:635)
 at org.sikuli.script.RunTime.get(RunTime.java:291)
 at org.sikuli.script.RunTime.get(RunTime.java:126)
 at org.sikuli.script.RunTime.get(RunTime.java:316)
 at org.sikuli.script.Region.(Region.java:31)

I am using maven integration in eclipse to launch an OSGI Springframework test 
and I think I have a misconfiguration or something similar.
I set the SIKULI_HOME to the sikuli installation path.

The error seems relative to getting the parent directory of a class. The 
following line returns null and is the origin of the problem:
File fSxBase = fSxBaseJar.getParentFile();
The class related to the problem is org.sikuli.ide.SikuliIDE or 
org.sikuli.setup.RunSetup, I am not sure.

Can anyone help me? I am desperate, using Sikuli api would help a lot in
my project tests.

** Affects: sikuli
 Importance: Medium
 Assignee: RaiMan (raimund-hocke)
 Status: In Progress

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 2.0.0

** Description changed:

+ ** see related question
+ 
  Hi,
  
  I am facing a null pointer exception when trying to use sikuli api in my
  project:
  
  java.lang.ExceptionInInitializerError
-   at 
eu.iac3.mathMS.guiTestingTest.GuiTestingTest.testEditor(GuiTestingTest.java:144)
+  at 
eu.iac3.mathMS.guiTestingTest.GuiTestingTest.testEditor(GuiTestingTest.java:144)
  Caused by: java.lang.NullPointerException
-   at org.sikuli.script.RunTime.init(RunTime.java:635)
-   at org.sikuli.script.RunTime.get(RunTime.java:291)
-   at org.sikuli.script.RunTime.get(RunTime.java:126)
-   at org.sikuli.script.RunTime.get(RunTime.java:316)
-   at org.sikuli.script.Region.(Region.java:31)
+  at org.sikuli.script.RunTime.init(RunTime.java:635)
+  at org.sikuli.script.RunTime.get(RunTime.java:291)
+  at org.sikuli.script.RunTime.get(RunTime.java:126)
+  at org.sikuli.script.RunTime.get(RunTime.java:316)
+  at org.sikuli.script.Region.(Region.java:31)
  
- I am using maven integration in eclipse to launch an OSGI Springframework 
test and I think I have a misconfiguration or something similar. 
+ I am using maven integration in eclipse to launch an OSGI Springframework 
test and I think I have a misconfiguration or something similar.
  I set the SIKULI_HOME to the sikuli installation path.
  
  The error seems relative to getting the parent directory of a class. The 
following line returns null and is the origin of the problem:
- File fSxBase = fSxBaseJar.getParentFile(); 
+ File fSxBase = fSxBaseJar.getParentFile();
  The class related to the problem is org.sikuli.ide.SikuliIDE or 
org.sikuli.setup.RunSetup, I am not sure.
  
  Can anyone help me? I am desperate, using Sikuli api would help a lot in
  my project tests.

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

Title:
  [request] sikulixapi.jar should be useable with OSGI

Status in Sikuli:
  In Progress

Bug description:
  ** see related question

  Hi,

  I am facing a null pointer exception when trying to use sikuli api in
  my project:

  java.lang.ExceptionInInitializerError
   at 
eu.iac3.mathMS.guiTestingTest.GuiTestingTest.testEditor(GuiTestingTest.java:144)
  Caused by: java.lang.NullPointerException
   at org.sikuli.script.RunTime.init(RunTime.java:635)
   at org.sikuli.script.RunTime.get(RunTime.java:291)
   at org.sikuli.script.RunTime.get(RunTime.java:126)
   at org.sikuli.script.RunTime.get(RunTime.java:316)
   at org.sikuli.script.Region.(Region.java:31)

  I am using maven integration in eclipse to launch an OSGI Springframework 
test and I think I have a misconfiguration or something similar.
  I set the SIKULI_HOME to the sikuli installation path.

  The error seems relative to getting the parent directory of a class. The 
following line returns null and is the origin of the problem:
  File fSxBase = fSxBaseJar.getParentFile();
  The class related to the problem is org.sikuli.ide.SikuliIDE or 
org.sikuli.setup.RunSetup, I am not sure.

  Can anyone help me? I am desperate, using Sikuli api would help a lot
  in my project tests.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubsc

Re: [Sikuli-driver] [Question #283045]: Problem executing Sikuli scripts on selenium grid

2016-01-22 Thread RaiMan
Question #283045 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/283045

Status: Open => Invalid

RaiMan changed the question status:
double question

-- 
You received this question notification because your team Sikuli Drivers
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 #283044]: Problem executing Sikuli scripts on selenium grid

2016-01-22 Thread RaiMan
Question #283044 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/283044

Status: Open => Answered

RaiMan proposed the following answer:
Sikuli scripts cannot be run in parallel on the same machine sharing the
same mouse, keyboard and screen, since the access to these devices is
not coordinated between scripts.

-- 
You received this question notification because your team Sikuli Drivers
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 #283309]: Improve the performance of a Sikulix script on Flash page

2016-01-24 Thread RaiMan
Question #283309 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/283309

Status: Open => Needs information

RaiMan requested more information:
What OS X?

using the final 1.1.0?

-- 
You received this question notification because your team Sikuli Drivers
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 #282135]: Typing fraction Value

2016-01-24 Thread RaiMan
Question #282135 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/282135

Status: Open => Answered

RaiMan proposed the following answer:
Ok, then you seem not to be familiar with Python scripting yet.

So you either have to learn how to setup user functions and how to do
some more complex Python scripting,

... or you have to live with the above solution:
type("%.7f"%value)

and raise 7 to the maximum value possible and live with the trailing 0's
in case.

-- 
You received this question notification because your team Sikuli Drivers
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


  1   2   3   4   5   6   7   8   9   10   >