Re: [Sikuli-driver] [Question #661467]: Find multiple items on the same "screen sample" --- feature in 1.1.2+

2017-12-11 Thread RaiMan
Question #661467 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661467

RaiMan posted a new comment:
Uuuups, thousand Sorries. Please excuse me.
It was later in the evening in Germany and I simply mistaked you with someone 
else and his case in this forum.
My bad that I did not look closer.

The nickname GZ is now always motivating me, to help as soon as possible.
Have fun.

I have hidden the tail of this thread.

-- 
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 #661543]: OCR not able to find text

2017-12-11 Thread RaiMan
Question #661543 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661543

RaiMan proposed the following answer:
Principally yes ;-)

You have to dive into the details of Tesseract (current Sikuli internally has 
Tesseract 3.02, but still only uses it like a version 2).
You need a separate Tesseract installation on your system.

When you have your relevant data files ready, then you have to integrate them 
into the the SikuliX environment.
I do not have any experience with that, but faq 2709 might help to get on the 
road.

If you eventually get the track to a solution: feedback and SikuliX
related questions welcome

-- 
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 #661532]: region with finder

2017-12-11 Thread Maniraj
Question #661532 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661532

Status: Answered => Solved

Maniraj confirmed that the question is solved:
Thanks RaiMan, that solved my 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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

Status: Answered => Solved

xiaocezi confirmed that the question is solved:
now i had achieved to run sikuli scripts in pycharm with jython interpreter.
and achieved to run sikuli scripts in eclipse with jython interpreter, or java 
application.
in pycharm with jython interpreter is easy,can like this:

import sys
sys.path.append("C:\\Users\\xie\\AppData\\Roaming\\Sikulix\\Lib")
from sikuli import *
from sikuli import Screen

print "Hello World!Jython"
x=1
print x

any = Screen(0)
any.click("1m.png")
---

the"C:\\Users\\xie\\AppData\\Roaming\\Sikulix\\Lib" directory,is a auto create 
file directory when i setup sikuli.
 

ok, my english is not so good,if has any question about it,can email
me:xiejia...@126.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 #661561]: Capture is going to temp instead of project folder

2017-12-11 Thread RaiMan
Question #661561 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661561

Status: Open => Answered

RaiMan proposed the following answer:
Capture since the beginning in 2010 is a prominent feature in SikuliX,
but also the API/usage differed on the 3 levels IDE/Python/Java from
beginning.

Over the time I tried to smooth the differences and add features in the sense 
of your request.
But I have to admit, that the docs do not really talk about ;-)

Internally a capture in all its variants creates a ScreenImage object, that in 
the first place holds an in-memory image representing the captured pixels. 
ScreenImage has methods to store the image in various places.
But due to backward compatibility reasons at the Python level the problem 
cannot be solved by augmenting the capture() command.
This is still valid:
http://sikulix-2014.readthedocs.io/en/latest/screen.html#Screen.capture

To get access to the intermediate ScreenImage object from the Python level, you 
have to say
screenImage = SCREEN.capture() 

... then you have
screenImage.saveInBundle(name) # save in current bundle path using name (.png 
can be omitted)
screenImage.getFile(path, name) # save in given path using name (.png can be 
omitted)

I have not yet decided, how to finally solve the problem, but I will add
least add the above as a note to the docs of capture().

In this sense thanks for the 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


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

2017-12-11 Thread RaiMan
Bug #1737507 status changed in Sikuli:

New => Fix Committed

https://bugs.launchpad.net/sikuli/+bug/1737507
"[request] capture and store image should be possible with one compound command"

This bug is linked to #661561.
Capture is going to temp instead of project folder
https://answers.launchpad.net/sikuli/+question/661561

-- 
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 #661561]: Capture is going to temp instead of project folder

2017-12-11 Thread RaiMan
Question #661561 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661561

Linked to bug: #1737507
https://bugs.launchpad.net/bugs/1737507
"[request] capture and store image should be possible with one compound 
command"

-- 
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 1737507] [NEW] [request] capture and store image should be possible with one compound command

2017-12-11 Thread RaiMan
Public bug reported:

Hi Everyone,

When using the capture(Region=(x,y,w,h)) command, the saved image is
going to the temp folder of the OS instead of the .sikuli folder of the
project.

I assume this is a bug as I've read that it should go to the .sikuli
folder, which is what I want. I'm on the 1.1.1 release version.

**BTW, it would be amazing if we could name and choose path for these captures**
Something like capture(region, path, filename) would be awesome!

** 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.2

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

Title:
  [request] capture and store image should be possible with one compound
  command

Status in Sikuli:
  Fix Committed

Bug description:
  Hi Everyone,

  When using the capture(Region=(x,y,w,h)) command, the saved image is
  going to the temp folder of the OS instead of the .sikuli folder of
  the project.

  I assume this is a bug as I've read that it should go to the .sikuli
  folder, which is what I want. I'm on the 1.1.1 release version.

  **BTW, it would be amazing if we could name and choose path for these 
captures**
  Something like capture(region, path, filename) would be awesome!

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1737507/+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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread RaiMan
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

RaiMan posted a new comment:
I am sorry to say, that your solution in comment #5 is a possibility, but not 
the recommended way for SikuliX.
So I take the right to hide your comment, so others might not be confused.

Still the recommended way for any Jython environment

- have sikulixapi.jar on the Java classpath at runtime

- at the beginning of your script say:
import org.sikuli.script.SikulixForJython
from sikuli import *

So your "wrong" script would shrink to:

import org.sikuli.script.SikulixForJython
from sikuli import *
print "Hello World!Jython"
x=1
print x
click("1m.png")

... except the first 2 lines the same as in the SikuliX IDE - which was
the goal for the solution.

-- 
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
sorry,haha
thank you ,RaiMan,i had tried the scripts that in comment 6,it's work now!
In fact, I did a similar attempt before I did it correctly, maybe I had set up 
a wrong place before.Now i know how to let it work currently!

-- 
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 #661529]: VisionProxy.dll not available in AppData\Roaming\Sikulix\SikulixLibs_201712071454

2017-12-11 Thread RaiMan
Question #661529 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661529

Status: Open => Answered

RaiMan proposed the following answer:
I made a test with a plain Java application using a Maven build.
see: https://github.com/RaiMan/SikuliX-2014/tree/develop/MavenRun

I ran this on a Windows 10 64-Bit with Java 1.8 latest.

It works a s expected and especially exports the correct library dll's
to the libs folder.

So it seems to have something to do with your special setup/environment.

It looks like the SikuliX jar files are not taken from a local Maven
repository, but from some Eclipse related internal lib folder.

The problem exists between these 2 steps: (only this is relevant)
--1: [debug] RunTimeINIT: resourceList: having jar: 
jar:file:/C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixlibswin-1.1.1.jar!/sikulixlibs/windows/libs64/

--2: [debug] RunTimeINIT: files exported: 0 from:
/sikulixlibs/windows/libs64 to:

in between the mentioned jar file containing the libs is scanned for the lib 
files according to a list before read using getResource(), which worked, since 
no errors are reported (all guarded with try/catch).
The libs are extracted using ZipInputStream, but no errors are reported in your 
case.

Conclusion: I have no idea.

You might raise the Debug level to 4, to eventually get additional
messages.

BTW: later we have the same problem with the Lib folder from sikulixapi.jar
debug] RunTimeAPI: resourceList: having jar: 
jar:file:/C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixapi-1.1.1.jar!/Lib/
[debug] RunTimeAPI: files exported: 0 from: Lib to:

-- 
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 #661561]: Capture is going to temp instead of project folder

2017-12-11 Thread GZ
Question #661561 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661561

Status: Answered => Solved

GZ confirmed that the question is solved:
Great! Thanks very much RaiMan!

-- 
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 1737392] Re: [1.1.2] running scripts from net (http://...) not working as expected

2017-12-11 Thread Ezhil
Hi Raiman. Good morning. Do you need any other details or help?

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

Title:
  [1.1.2] running scripts from net (http://...) not working as expected

Status in Sikuli:
  Confirmed

Bug description:
  I tried the below and gave me error

  D:\Users\PerfReg>C:/Sikuli/runsikulix.cmd -r 
http://10.9.xx.xxx/ScripsIIS/TW
  S_11292017.sikuli/  --args 1803

  
  [error] Runner: given script location not supported or not valid:
  http://10.9.11.192/ScripsIIS/TWS_11292017.sikuli
  [error] FileManager: Not a valid Sikuli script project:
  D:\Users\PerfReg1061\TWS_11292017.sikuli

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1737392/+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 #661467]: Find multiple items on the same "screen sample" --- feature in 1.1.2+

2017-12-11 Thread GZ
Question #661467 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661467

GZ posted a new comment:
I see. Thanks RaiMan, no problem.

2017-12-11 8:08 GMT+00:00 RaiMan :

> Your question #661467 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/661467
>
> RaiMan posted a new comment:
> Uuuups, thousand Sorries. Please excuse me.
> It was later in the evening in Germany and I simply mistaked you with
> someone else and his case in this forum.
> My bad that I did not look closer.
>
> The nickname GZ is now always motivating me, to help as soon as possible.
> Have fun.
>
> I have hidden the tail of this thread.
>
> --
> You received this question notification because you asked the 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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
i must to add [Add source folder] with 
"C:\\Users\\xie\\AppData\\Roaming\\Sikulix\\Lib"  and[ Add zip/jar/egg] 
sikuliapi.jar for the project,in project->properties 
->PyDev-PYTHONPATH->External Libraries page。
and then write the script like:

from sikuli import *

print "Hello World!Jython"
x=1
print x

any = Screen(0)

any.click("1m.png")


i don't know why it doesn't work in comment 8.
maybe something is wrong?

-- 
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:

It is puzzling that when i tried this method with jython interpreter in eclipse 
like:
import org.sikuli.script.SikulixForJython
from sikuli import *

print "Hello World!Jython"
x=1
print x

any = Screen(0)

any.click("1m.png")


the console show:
Traceback (most recent call last):
  File "D:\eclipse-workspace\HelloWorldInJython\jythonhll.py", line 5, in 

import org.sikuli.script.SikulixForJython
ImportError: No module named sikuli

-- 
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
in comment 6,i tried successfully ,is in pycharm。

-- 
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread RaiMan
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

RaiMan posted a new comment:
-- to comment #8:
The recommended solution from comment #6 needs (clearly mentioned)

- have sikulixapi.jar on the Java classpath at runtime

meaning you have to add a 
CLASSPATH=

to the jython interpreter's runtime environment.

this is apparently not the case in comment #8

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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread RaiMan
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

RaiMan posted a new comment:
-- to comment#9:
obviously a possible solution tailored for Eclipse/PyDev

again: the recommended way is one that ALWAYS works for running scripts
in any Jython environment with minimum effort and clutter.

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 1737392] Re: [1.1.2] running scripts from net (http://...) not working as expected

2017-12-11 Thread RaiMan
No thanks. Just have to dive into it later ;-)

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

Title:
  [1.1.2] running scripts from net (http://...) not working as expected

Status in Sikuli:
  Confirmed

Bug description:
  I tried the below and gave me error

  D:\Users\PerfReg>C:/Sikuli/runsikulix.cmd -r 
http://10.9.xx.xxx/ScripsIIS/TW
  S_11292017.sikuli/  --args 1803

  
  [error] Runner: given script location not supported or not valid:
  http://10.9.11.192/ScripsIIS/TWS_11292017.sikuli
  [error] FileManager: Not a valid Sikuli script project:
  D:\Users\PerfReg1061\TWS_11292017.sikuli

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1737392/+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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread xiaocezi
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

xiaocezi posted a new comment:
 yes, i agreen with you about "works for running scripts in any Jython 
environment with minimum effort and clutter."
 i sure again that i had set 
CLASSPATH=C:\jython2.7.0\jython.jar;D:\Sikuli\sikulixapi.jar;
and this setting is good working in pycharm,it's strange not work in eclipse 
with jython.

in my computer's environment variable,BUT it still show in console:
--
Hello World!Jython
1
Traceback (most recent call last):
  File "D:\eclipse-workspace\Jythonagain\sikuli.py", line 9, in 
from sikuli import *
  File "D:\eclipse-workspace\Jythonagain\sikuli.py", line 16, in 
any = Screen(0)
NameError: name 'Screen' is not defined
--
thanks and sorry for have you time with this little 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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread RaiMan
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

RaiMan posted a new comment:
You have to somehow add the CLASSPATH inside Eclipse to your projects
run environment.

As far as I remember: Eclipse does not automatically propagate the outside 
(system) environment to the project run environment.
But I do not want to deal with Eclipse.

I am dedicated to the JetBrains products.

BTW: it is not a good idea and not necessary, to have Jython on the
classpath. This is handled by jython itself and by the IDE's .

I started to doc the handling of SikuliX scripts in PyCharm:
http://sikulix-2014.readthedocs.io/en/latest/scenarios.html#scripting-with-intellij-pycharm-and-idea-with-python-plugin

-- 
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 #660917]: how to run a sikuli script in jython.exe or jython IDE

2017-12-11 Thread RaiMan
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917

RaiMan posted a new comment:
... and maybe this:
https://answers.launchpad.net/sikuli/+question/661362

-- 
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 #661580]: Sikuli for Centos 7 (Urgent)

2017-12-11 Thread Renuka Selvaraj
New question #661580 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661580

Hi, 

We are trying to install sikuli for centos 7 for past week.. But couldnt 
succeed. Can you please guide us for the right package and dependencies for the 
successful installation.

Thanks,
Renuka S

-- 
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 #661580]: Sikuli for Centos 7 (Urgent)

2017-12-11 Thread RaiMan
Question #661580 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661580

Status: Open => Answered

RaiMan proposed the following answer:
have you been here already:
http://www.sikulix.com/specials/files/linux-setup-prerequisites.html

-- 
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 #661580]: Sikuli for Centos 7

2017-12-11 Thread RaiMan
Question #661580 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661580

Summary changed to:
Sikuli for Centos 7

Description changed to:
We are trying to install sikuli for centos 7 for past week.. But couldnt
succeed.

Can you please guide us for the right package and dependencies for the
successful installation.

-- 
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 1737507] Re: [request] capture and store image should be possible with one compound command --- fixed 1.1.2 2017-12-12

2017-12-11 Thread RaiMan
** Summary changed:

- [request] capture and store image should be possible with one compound command
+ [request] capture and store image should be possible with one compound 
command --- fixed 1.1.2 2017-12-12

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

** Description changed:

+ - implemented solution
+ http://sikulix-2014.readthedocs.io/en/latest/screen.html#capturing
+ 
+ preliminary description:
+ storedAt = capture(Region or Text, [path,] name)
+ If Text is given, the interactive capture is processed, otherwise the given 
Region is captured.
+ If path is omitted, the image is stored in current bundle path as _name.png 
(_ to block its deletion on script save).
+ Otherwise image is stored at path/name.png.
+ In all cases returns the absolute filename or None if not successful.
+ 
+ -
+ 
  Hi Everyone,
  
  When using the capture(Region=(x,y,w,h)) command, the saved image is
  going to the temp folder of the OS instead of the .sikuli folder of the
  project.
  
  I assume this is a bug as I've read that it should go to the .sikuli
  folder, which is what I want. I'm on the 1.1.1 release version.
  
  **BTW, it would be amazing if we could name and choose path for these 
captures**
  Something like capture(region, path, filename) would be awesome!

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

Title:
  [request] capture and store image should be possible with one compound
  command --- fixed 1.1.2 2017-12-12

Status in Sikuli:
  Fix Committed

Bug description:
  - implemented solution
  http://sikulix-2014.readthedocs.io/en/latest/screen.html#capturing

  preliminary description:
  storedAt = capture(Region or Text, [path,] name)
  If Text is given, the interactive capture is processed, otherwise the given 
Region is captured.
  If path is omitted, the image is stored in current bundle path as _name.png 
(_ to block its deletion on script save).
  Otherwise image is stored at path/name.png.
  In all cases returns the absolute filename or None if not successful.

  -

  Hi Everyone,

  When using the capture(Region=(x,y,w,h)) command, the saved image is
  going to the temp folder of the OS instead of the .sikuli folder of
  the project.

  I assume this is a bug as I've read that it should go to the .sikuli
  folder, which is what I want. I'm on the 1.1.1 release version.

  **BTW, it would be amazing if we could name and choose path for these 
captures**
  Something like capture(region, path, filename) would be awesome!

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1737507/+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 #661561]: Capture is going to temp instead of project folder

2017-12-11 Thread RaiMan
Question #661561 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661561

RaiMan posted a new comment:
I find a way, to implement your requested feature.
Available now in the latest nightly 1.1.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 #661586]: Unable to import xlrd: Syntax error

2017-12-11 Thread Ashish
Question #661586 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661586

Project: Launchpad itself => Sikuli

-- 
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 #661586]: Unable to import xlrd: Syntax error

2017-12-11 Thread Ashish
New question #661586 on Launchpad itself:
https://answers.launchpad.net/launchpad/+question/661586

Unable to import xlrd: Syntax error

Error Message:
[error] script [ Untitled ] stopped with error in line 1
[error] SyntaxError ( ('no viable alternative at input \'"PK\\x03\\x04"\'', 
('C:\\Users\\abcd\\Documents\\SikuliX\\sikulix.jar\\Lib\\xlrd\\__init__.py', 
397, 16, ' if peek == b"PK\\x03\\x04": # a ZIP file\n')) )


I am using the following versions:
Sikulix 1.1.0
jython-standalone-2.5.4-rc1.jar
Java6

Limitations: i cannot upgrade the java as it is restricted by my admin.

xlrd folder is SikuliX/Libs

Please suggest some workaround as i am new to sikuli and unable to proceed:(


-- 
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 #661561]: Capture is going to temp instead of project folder

2017-12-11 Thread RaiMan
Question #661561 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661561

RaiMan posted a new comment:
for a preliminary description see the 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 #661586]: Unable to import xlrd: Syntax error

2017-12-11 Thread RaiMan
Question #661586 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661586

Status: Open => Needs information

RaiMan requested more information:
Then you have a problem :-(

Does SikuliX as such work?
What system are you running on?

For what exactly do you need xlrd?
Possible to export the .xls as .cvs and then access the file normally?

-- 
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 #661586]: Unable to import xlrd: Syntax error

2017-12-11 Thread Ashish
Question #661586 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661586

Status: Needs information => Open

Ashish gave more information on the question:
Sikuli works fine as such.

I need xlrd to read data from excel (.xls).

I am running it on Win7.

Sorry to ask silly question but what is the syntax error in Line 397 of
"__init__.py" file.

-- 
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 #661586]: Unable to import xlrd: Syntax error

2017-12-11 Thread RaiMan
Question #661586 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661586

Status: Open => Answered

RaiMan proposed the following answer:
--  what is the syntax error
the xlrd package has an __init__.py, which by convention is executed by the 
interpreter when a Python modul is loaded.
The code in that line is Python language level 2.7 and hence gives a syntax 
error, since Jython 2.5 only supports language level 2.5.

you might try with an older version:
https://pypi.python.org/pypi/xlrd/0.7.1

which is compatible with language level 2.5

Take care that the offending xlrd gets out of reach for SikuliX.

if you have problems:
- tell exactly where you have your xlrd folder
- run in the SikuliX IDE
for e in sys.path: print e
... and post the output here

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 #661603]: Set tolerance in click(image)

2017-12-11 Thread Max
New question #661603 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661603

Hi,

I have a problem in my Sikuli python script and no idea how to solve it.

I need to click on an image, but this could slightly differ from one computer 
to another. My code now is something like this:

while (exit != 1):
count += 1 
if exists("1508670860035.png"):
click("150867092.png")
exit = 1
else:

I would like to say something like "if exists("1508670860035.png").similar(0.5) 
click ("1508670860035.png").similar(0.5)". 
So I would like to add sort of tolerance for this image, so it could not be 
exactly the same, but differ a little.

I tried to use similar() function but I think I used in a wrong way (my script 
crashed).

Any suggestion?

-- 
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 1409098] Re: findAll limited to 100 matches

2017-12-11 Thread skeets
This also affects me too in a similar fashion.

I have an image of a certain size and it is a blank image (16x25, RGB is
0, 0, 0).  I find a larger (parent) image using Region exists method
(244x25).  Then from that parent image, I do a sub-verify using the
findAll method to find the smaller blank image. My blank image can be
found in many places within the parent image.  The location within the
parent image that it should find it at is 0,0 but it never finds it at
that location.  The closest it seems to find it is at 2, 0 (which is
also a valid location to find the blank 16x25 image).   I had a larger
parent image that I scaled down because I too thought that the number of
finds is limited to some number.  The scaled down version STILL does not
find the child image within the parent image at 0,0... it only finds it
at other locations...  which is now limited to maybe 35 places...  If I
change up my images and use any child image other than a blank image it
seems to find the image at the location I expect.

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

Title:
  findAll limited to 100 matches

Status in Sikuli:
  In Progress

Bug description:
  Calls to findAll seem to report at most 100 matches., silently
  discarding any further matches.  Suggest findAll be configurable to
  specify the maximum number of matches, even if the default is 100, in
  the same way that similarity defaults to 0.7 but can be configured.
  Also suggest that if the max is exceeded, an exception is thrown so
  that missing matches can be spotted easily

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1409098/+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 #661265]: How to use ocr in sikuli using python

2017-12-11 Thread Ju1+i-我 .
Question #661265 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661265

Status: Answered => Open

Ju1+i-我. is still having a problem:
thank you so much , I have solved some functions about this ,but still  exists 
problem.
The first one is, the daily number of results of each TCode running is not 
fixed, now I try to capture two images, and then determine whether the contents 
of the two pictures are consistent. so how to resolve it?
many thanks

-- 
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 #661265]: How to use ocr in sikuli using python

2017-12-11 Thread RaiMan
Question #661265 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661265

Status: Open => Answered

RaiMan proposed the following answer:
have a look at class Finder in 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 #661603]: Set tolerance in click(image)

2017-12-11 Thread RaiMan
Question #661603 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661603

Status: Open => Answered

RaiMan proposed the following answer:
have you already looked into the docs?
learn about using a Pattern instead of an image, to control wanted similarity.

-- 
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 #661603]: Set tolerance in click(image)

2017-12-11 Thread RaiMan
Question #661603 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661603

RaiMan proposed the following answer:
... but be aware:
lowering the wanted similarity to 0.5 increases the risk for false positives.
You might think of optimizing your shots (as little background as possible in 
most cases)
see: 
http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

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