Re: [Sikuli-driver] [Question #670704]: Jython non-interactive command line quick as in runsikuli -i ? (Ubuntu 16.4)

2018-07-09 Thread tofti
Question #670704 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670704

tofti posted a new comment:
Hi RaiMan,
I see you had a whole effort, big thanks yet!
Hopefully in the course of the day I can learn the installs and shall come back 
with the requested feedback.

-- 
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 #670690]: Is there any way to find only borders of Image

2018-07-09 Thread Prabhakaran
Question #670690 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670690

Status: Answered => Open

Prabhakaran is still having a problem:
first I want to identify On screen available shapes 
Then I want to identify the parts of the shapes (like Corners 2-2px, lines ) 
based on matched images I want to do action on that matched Regions.

-- 
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 #670756]: EditorPane: Problem while trying to create HTML: null

2018-07-09 Thread Jeff_Vallis
New question #670756 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670756

Have been meaning to ask for the last few days 
Is this fixed on latest Nighly Build

[error] EditorPane: Problem while trying to create HTML: null

1.1.3(2018-07-05_16:27)/Mac10.13.5/Java8(64)1.8.0_25-b17

-- 
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 #670756]: EditorPane: Problem while trying to create HTML: null

2018-07-09 Thread RaiMan
Question #670756 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670756

Status: Open => Answered

RaiMan proposed the following answer:
yes, should be fixed.

I generally recommend, to switch off HTML-creation, because I will not fix any 
problems with it.
Prefernces -> more options

-- 
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 #670690]: Is there any way to find only borders of Image

2018-07-09 Thread RaiMan
Question #670690 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670690

Status: Open => Answered

RaiMan proposed the following answer:
--- first I want to identify On screen available shapes
Not really a job for SikuliX, because you need to know in advance, what you are 
looking for (captured images).

I think, you have to dive into OpenCV 3.x using the Java interface 
implementation.
If you decide to do so, you might have a look into SikuliX version 2, that uses 
the OpenCV Java API (class com.sikulix.core.Finder).
This has implementations for matchTemplate with transparency and a basic 
implementation for edge detection.

-- 
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 #402692]: Problem running script from Win command line

2018-07-09 Thread paulo doido silva
Question #402692 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402692

paulo doido silva posted a new comment:
is there another way to improve startup time?

C:\\sikuli\\runsikulix.cmd -r C:\\sikuli\\t2.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 #670724]: Trouble finding matches for images

2018-07-09 Thread alex
Question #670724 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670724

alex posted a new comment:
When I first capture the images from the GUI, SikuliX finds them with a 
similarity value of 99%.
Then after a few passes, the situation described may occur. I recaptured the 
images multiple times. Sometimes it helped for a while, but then the error came 
back.
Capturing a larger portion of the image works for a few, but other images can 
not have a larger capture area because the region around them is subject to 
change which would definitely result in a FindFailed.
It is probably worth noting that I have this issue exclusively when at least 
one of the image dimensions is rather small in the order of 20-30 pixels. But 
as I said, I can not capture larger images for all of them.

-- 
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 #402692]: Problem running script from Win command line

2018-07-09 Thread RaiMan
Question #402692 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402692

RaiMan posted a new comment:
no, using the method from comment #7, will always result in a startup delay of 
around 5 seconds.
This is caused by the internal init of the Jython/Java/SikuliX environment. 

May be that question
https://answers.launchpad.net/sikuli/+question/670704
is of interest for you

see comment #1 for reasons and possible solutions and then read further

-- 
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 #670771]: Monitor Sikulix scenarios

2018-07-09 Thread chekhab Imed
New question #670771 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670771

Hello, I can not supervise my sikulix scenarios.
I put error codes in my script to follow the progress of the script. 
By running the script from the Sikulix IDE, it works well, but when I run an 
nrpe-check from my centreon console i have the following error message:.

[error] Location: outside any screen (20170384, 0) - subsequent actions might 
not work as expected

Thanks in advance for your help.


-- 
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 #670771]: Monitor Sikulix scenarios

2018-07-09 Thread chekhab Imed
Question #670771 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670771

Description changed to:
Hello, I can not supervise my sikulix scenarios.
I put error codes in my script to follow the progress of the script. 
By running the script from the Sikulix IDE, it works well, but when I run an 
nrpe-check from my centreon console i have the following error message:.

[error] Location: outside any screen (20170384, 0) - subsequent actions
might not work as expected

Script:
import os, sys

openApp("C:\Program Files\Internet Explorer\iexplore.exe https://some_website";)
time.sleep(10)
if find("1531129693208.png"):
click("1531125950641.png") 
else:   
print "Connexion impossible"
sys.exit(1)
os.system("taskkill /im iexplore.exe /f")
if exists("1531127199130.png"):
click("1531127226279.png") 
type("Test") 
find("1531125270172.png") 
click("1531127307658.png")
type ("Test")   
click("1531127353933.png")
find("1531125328620.png")
click("1531125337525.png")
os.system("taskkill /im iexplore.exe /f")
print "Connexion a somewebsite OK"
sys.exit(0)
else:
os.system("taskkill /im iexplore.exe /f")
print "Erreur interface"
sys.exit(3)  

Thanks in advance for your help.

-- 
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 #670724]: Trouble finding matches for images

2018-07-09 Thread RaiMan
Question #670724 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670724

RaiMan proposed the following answer:
since generally the captured image are fix and do not change, there must
happen some changes on the screen in the area, where you think your
capture should be found.

The smaller the images the fewer changing pixels may lead to this
effect.

I have to admit, that these situations are hard to debug.

this might be helpful:
if not exists(img):
  saveLastScreenImage()
  exit(1)

where img is the offending image.

You will have a LastScreenImage.png (the screenshot, where in your image
was not found) in the folder SikulixStore in the 
folder (see docs).

all the best

visually compare the image with the

-- 
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 #670724]: Trouble finding matches for images

2018-07-09 Thread RaiMan
Question #670724 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670724

RaiMan proposed the following answer:
You need some imageviewer, that allows to zoom into an image down to the
pixel level (each pixel is shown as a square)

-- 
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 #670771]: Monitor Sikulix scenarios

2018-07-09 Thread RaiMan
Question #670771 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670771

Status: Open => Answered

RaiMan proposed the following answer:
what ever this might be:
nrpe-check from my centreon console

it apparently does not have a standard real screen or some valid
simulation (X11 based e.g. xvfb) at runtime of the script.

SikuliX needs access to a real screen or something equivalent, that is
accepted by Java AWT Robot.

Make sure, you use the latest SikuliX, preferably 1.1.3 nightly and
switch on debugging.

-- 
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 #670780]: OCR using sikuli-api-1.2.0

2018-07-09 Thread Naveen Vangipurapu
New question #670780 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670780

I am using sikuli-api-1.2.0.jar for my test automation and I am trying to OCR 
text from the screen but I am not able to find a class which will enable me to 
extract the data.  In the sikuli script I see there is a Region.text and I am 
trying to find a class where it will expose the OCR capability.  



-- 
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 #670783]: Different character encoding when using CMD instead of IDE

2018-07-09 Thread Max
New question #670783 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670783

Hello,

i have a sikulix script which has a different behaviour when i start it as a 
batch file with runsikulix.cmd than running it from the IDE
 .
I'm using Sikulix 1.1.0 (cant download a newer version because it is restricted 
in my companys network)

the script copys (type ctrl+c -> Env.getClipboard()) some mail text with 
special characters like "ä", "ö" or "ü" and paste it into a textbox of another 
application.
when i start my script from the sikulix IDE everything is fine.
but when i start my script from a batch file (\\xx\SikuliX\runsikulix.cmd 
-r \\\test.sikuli). the encoding of the special characters fails. The 
chacater "ä" is displayed as "ÿ".
how can i fix that?

thank you for your help!

-- 
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 #670542]: How to use HTMLTestRunner to create a test report

2018-07-09 Thread BenjaminWang
Question #670542 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670542

Status: Answered => Solved

BenjaminWang 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