[Sikuli-driver] [Question #693680]: [error] Env.getClipboard: cannot open system clipboard

2020-10-27 Thread James Panteleone
New question #693680 on Sikuli:
https://answers.launchpad.net/sikuli/+question/693680

I have used these programs for many years and in the past few days i have been 
troubled with errors while accessing the system clipboard.

It's not on every use in my program.  I collect data off the screen from a 
special spreadsheet.  I used to be able to collect hundreds of lines but as of 
a couple of days ago, i get this error on the third or fourth line (copying ~15 
elements).

clipboard.setContents(StringSelection(""), None)
sleep(1)
type("c", KEY_CTRL)
DOB = Env.getClipboard().strip()

Maybe i'm using some old methods.

SikuliXIDE-2.0.4
JRE 8
Windows 10

-- 
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 #693662]: VNCScreen.capture doesnt work

2020-10-27 Thread Ben weiss
Question #693662 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693662

Ben weiss posted a new comment:
no, its over an internal network. i verified that the VNC connection is
healthy and can be used in a normal config (i can use vncviewer over
default port 5900 and specific ip). The picture that SikuliX takes from
java is of the first second that the VNC screen is connected.

-- 
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 #693662]: VNCScreen.capture doesnt work

2020-10-27 Thread RaiMan
Question #693662 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693662

RaiMan proposed the following answer:
ok. 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 #693662]: VNCScreen.capture doesnt work

2020-10-27 Thread RaiMan
Question #693662 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693662

RaiMan requested more information:
Are you running the TigerVNC server on the same machine as the SikuliX
program?

-- 
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 #693662]: VNCScreen.capture doesnt work

2020-10-27 Thread Ben weiss
Question #693662 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693662

Ben weiss posted a new comment:
no worries. thanks for the response.

im on a centos distro and run sikuli from a java program. TigerVNC is
installed and works accordingly on my machine.

I cant give away more detailed descriptions because of the work
environment im in but i will gladly answer questions and assist in this
issue if you find anything that could possibly be a 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 #693662]: VNCScreen.capture doesnt work

2020-10-27 Thread RaiMan
Question #693662 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693662

Status: Open => Answered

RaiMan proposed the following answer:
Sorry for ignoring your other question, that meanwhile expired.

The VNC support is not my priority and the implementation is based on a
contribution 3 years ago.

I will setup a test configuration again, to finally decide how to deal
with the VNC support in the future.

A detailed description of you setup would surely 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 #693505]: java multithreading is not parallel

2020-10-27 Thread RaiMan
Question #693505 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693505

RaiMan posted a new comment:
region.findAny() works on one region with many patterns, the region is
only captured once at the beginning and the search is done threaded in
the captured image.

multiple region.has(), if done threaded, will do the capture of the
region in every thread, hence multiple times in parallel.

This is why has()-threaded is slower than findAny() probably due to this as 
mentioned above:
I guess this is due to some internal resource-locking, probably in the 
AWT-Robot when capturing the screen.

As mentioned: I will have an eye on 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 #693505]: java multithreading is not parallel

2020-10-27 Thread Jaroslav Novotny
Question #693505 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693505

Jaroslav Novotny posted a new comment:
I did some more testing and found this performance scaling pretty much
in line with both test above:

https://i.imgur.com/D3qGUju.png

It's array of 8 patterns each same size trying to find them in different
region sizes, I did each test for each region size 100x and averaged it,
wasn't sure if the stair-case effect is real or not.

The clear winner seems to be region.findAnyList() that scales nicely,
but UI elements are often scattered around the screen so it would be
used with a big region to batch-find the state of all of them. On the
other hand the single and multi-threaded ways allow to use different
region with different pattern so for each item from the pattern array
only a small portion of screen can be used as region because UI elements
are often fixed where they are. But there is something bottlenecking
both in regions < 500px^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