Re: [Sikuli-driver] [Question #693505]: java multithreading is not parallel

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

Status: Answered => Solved

Jaroslav Novotny confirmed that the question is solved:
I distilled my code to the smallest working example: 
https://notepad.pw/code/g105vjx1b
And got output that I'd expect:

Test 1 took: 432 ms
Test 2 took: 118 ms
Test 3 took: 168 ms

I'll keep investigating but looks like problem is somewhere else, most
likely between keyboard and chair, so I'll close this as solved.

-- 
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 #693497]: IntelliJ IDEA artifact.jar and ImagePath

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

Status: Answered => Open

Jaroslav Novotny is still having a problem:
I made a new project just to investigate, got some new info. I was
hoping it was conflict in the "main" name, but looks like something
else.

This is the code:

import org.sikuli.script.*;
public class SikuliTest {
public static void main(String[] args) {
boolean path_add_success = ImagePath.add("SikuliTest/patterns/");
System.out.printf("SikuliTest/patterns/ added?: %s" + "\n", 
path_add_success);
for (ImagePath.PathEntry path : ImagePath.getPaths()) {
System.out.printf("ImagePath: %s\n", path);
}
Pattern pattern = new Pattern("pattern.png");
}
}

When running from IntelliJ all is fine. When from this .jar (unzipped
structure: https://i.imgur.com/kILFr1e.png) I get output:

e:\.\Sikuli_Test_jar>java -jar Sikuli_Test.jar
SikuliTest/patterns/ added?: true
ImagePath: null
ImagePath: null
[error] Image: load: failed: jar:file: 
/E:/.../out/artifacts/Sikuli_Test_jar/Sikuli_Test.jar!/patterns//pattern.png

Weirdly the "/" gets doubled.

-- 
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 #693497]: IntelliJ IDEA artifact.jar and ImagePath

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

Jaroslav Novotny posted a new comment:
I can provide this test project and .jar if needed.

-- 
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 #693546]: PC - When scripting in IDE - screen capture mode doesn't capture whole screen

2020-10-21 Thread DH
Question #693546 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693546

DH posted a new comment:
Thanks raiMan :-) You're the best!  That solved my 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 #693546]: PC - When scripting in IDE - screen capture mode doesn't capture whole screen

2020-10-21 Thread DH
Question #693546 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693546

Status: Answered => Solved

DH 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 #693546]: PC - When scripting in IDE - screen capture mode doesn't capture whole screen

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

RaiMan proposed the following answer:
I am talking about OpenJDK (best here https://adoptopenjdk.net/)

Oracles Java and JDKs are no longer available freely as OpenSource
(since version 9).

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