Re: [Sikuli-driver] [Question #665279]: [HowTo] node-java : Using SikuliX features through API --- tipps and tricks

2018-03-30 Thread RaiMan
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Status: Open => Answered

RaiMan proposed the following answer:
It seems to run on TravisCI: do you have a screen defined?

I use for that:
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 5

-- 
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 #665279]: [HowTo] node-java : Using SikuliX features through API --- tipps and tricks

2018-03-30 Thread Finn Ellis
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Status: Answered => Open

Finn Ellis is still having a problem:
Oh yes, it's definitely running -- I've defined a screen, and can
confirm with screenshots that a graphical session has started and is
running the applications it's supposed to be running. Even if I didn't
have screenshots, Sikuli itself is reporting (in the excerpt above) that
it does see the image it's looking for. The only problem (so far) is
right there in between those two console.log() lines, where it gets
stuck in the click() call and never gets back out. Specifically, it
gives me the log output above, then nothing else for ten minutes, at
which point the build job times out. Locally, when it gets to this
point, it clicks where it's supposed to and continues as expected.

-- 
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 #667374]: Sikuli image recognition fails for ThinkPad T470/Windows different OS version

2018-03-30 Thread pratik patil
New question #667374 on Sikuli:
https://answers.launchpad.net/sikuli/+question/667374

Hi Sir,

We have Sikuli scripts which we run on Virtual Machines. All images are 
captured neatly such that it should not hamper execution. Here is the case:

1. I have Windows 7 OS with T430 laptop (1600*900 resolution). When I connect 
to VM and try to execute script/s, it recognizes image very well and runs 
smoothly

2. My colleague have Windows 10 OS with T470 laptop (1920*1080 resolution). 
When he connects to VM and try to execute script/s, it fails to recognize 
image; not particular image but probably some random one. 
SO we have changed resolution of laptop and tried to run again and it again 
resulted in failure.

What can be causes behind this failure sir ? I heard about Graphics adapter 
plays role while searching image. 
Can you please give me some solution what can be done in this case?

Thanks for your help and 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 #665279]: [HowTo] node-java : Using SikuliX features through API --- tipps and tricks

2018-03-30 Thread RaiMan
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

RaiMan proposed the following answer:
Ok, what you can do:
simply use the plain Java AWT Robot class yourself in your clickSynch wrapper 
and try to 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


[Sikuli-driver] [Bug 1760167] [NEW] Match.target(); not being set or not being returned when Match object is returned through a function

2018-03-30 Thread Mike Bedwell
Public bug reported:

matchOfSomething=someFunctionThatReturnsMatch(Region);
System.out.println("matchOfSomething.toString());

The output is:
M[1438,135 142x22]@S(S(0)[0,0 1680x1050]) S:1.00 T:1020,594 [718 msec]

Location l=matchOfSomething.getTarget();
System.out.println(l.toString());

The output is:
L(1020,594)@S(0)[0,0 1680x1050]

Target is set to a location that is not within the bounds of the Match's
region.

Using Sikulix api with java, version 1.1.2

** Affects: sikuli
 Importance: Undecided
 Status: New

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

Title:
  Match.target(); not being set or not being returned when Match object
  is returned through a function

Status in Sikuli:
  New

Bug description:
  matchOfSomething=someFunctionThatReturnsMatch(Region);
  System.out.println("matchOfSomething.toString());

  The output is:
  M[1438,135 142x22]@S(S(0)[0,0 1680x1050]) S:1.00 T:1020,594 [718 msec]

  Location l=matchOfSomething.getTarget();
  System.out.println(l.toString());

  The output is:
  L(1020,594)@S(0)[0,0 1680x1050]

  Target is set to a location that is not within the bounds of the
  Match's region.

  Using Sikulix api with java, version 1.1.2

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1760167/+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 #665279]: [HowTo] node-java : Using SikuliX features through API --- tipps and tricks

2018-03-30 Thread RaiMan
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Status: Open => Answered

RaiMan proposed the following answer:
Ok, I have to stop here: I cannot help you: too many dimensions of
complexity.

Tracking my situation back (some month ago ;-), I have to admit, that I
do not have any testcase, where the click() feature was run on travis.

This is what I do there on an Ubuntu system:

language: java
jdk: oraclejdk9
install: mvn install -P build-fat -DskipTests=true -B
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 5
script:
 - mvn test -B

I will try to setup a testcase, that clicks and tries to proceed the
next week.

And I will add debug level 4 messages to the click feature and add an
option to switch those on/off.

Sorry, that I have to let you alone for now.

-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-30 Thread Alexander Schone
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

Alexander Schone posted a new comment:
Interesting, that means i wont have to deal with the script getting
slower then,

I made some tests measuring the ms it takes to find images and i have made the 
observsation the time varies between 3 and up to 40 ms for the same looped 
findBest(10 images), small region 17x12 pixel.
I had it running for 5+ iterations and there is no continuous increase or 
decrease, it jumps from 4 to 20 to 28 to 5 to 3 to 35 to 4 and so on, there is 
no pattern (that i could see at least). So my assumption is that these 
fluctuations are due to cpu? is there a way to allocate more resources to the 
program so that it performs the find operations even faster or more stable?
This is not really necessary but it would greatly improve the reroll speed for 
my bot :)

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