Re: [Sikuli-driver] [Question #665677]: Images are not detected in sikuli in java inside Mac VM

2018-03-16 Thread Nissar
Question #665677 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665677

Nissar posted a new comment:
My code is in java

example code:   
Screen s = new Screen();
s.wait(new Pattern("imagename.png").similar((float) 0.8), 180);

-- 
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 #665646]: how to install ocr but already installed sikuli with options 1 and 2 missed 3

2018-03-16 Thread Prabhakaran
Question #665646 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665646

Status: Answered => Open

Prabhakaran is still having a problem:
Hi RaiMan,
Thanks for the short and sweet answers and link. I am doing Automation Tools 
evolution - Forms Application. 

What are the testing types can be achieved by using Sikuli?

Ans: 1 
I have already Installed SikuliX 1.1.1 setup with options and 1 and 2. 
In Installed folder available Sikuli.jar copied and added under Java Project 
with Selenium and TestNG Jars etc,. 
Now, can I directly download and install final version 1.1.2 then select option 
3 alone or any direct download required pls help me? 

Ans: 3
While running my Test script in Multiple machines, At least is possible to 
achieve concurrency between machines? 
I want to stop running few Test Scripts otherwise it may try to change other 
Testscript Preconditions. 
Because I am going to run all the cases multiple machines but against one 
server.

Ans: 4
Friends Please suggest some links and experience. Becuase  Sikuli can be 
implemented in Python Javascript and Java so which way is the best. I am ready 
to learn and implement in any language. 

Once again i am thanking you.

-- 
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 #665677]: Images are not detected in sikuli in java inside Mac VM

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

Status: Open => Needs information

RaiMan requested more information:
--- Also updated my maven pom with 1.1.2 , still images are not detected from 
script
Not sure what you are talking about here: script for me means Python scripting.
Maven pom for me means Java programming.

So please be more specific with code snippets.

-- 
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-16 Thread RaiMan
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

RaiMan posted a new comment:
Every information you contribute is always welcome.

I have changed the question a little bit so it is more generic.

You might add comments here for questions and needed enhancements in
SikuliX.

Tipps and tricks should be added to the question itself (see my
example).

Feel free, to do it as you like - if I have any improvements I will
tell.

--- highlight and built-in image-capturing mechanism might also fail
... I guess you are talking about the interactive capture feature 
(Screen.userCapture() and Screen.selectRegion())

the problem here might be again some threading issue (or even Java EventQueue).
Both features internally work with a screen overlay frame, that has handlers 
attached for keyboard/mouse actions.
This can only be evaluated with extensive debugging with the source code.

Since I am not sure about the overall value of node-java, I did not step
into it until 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 #665279]: [HowTo] node-java : Using SikuliX features through API --- tipps and tricks

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

Summary changed to:
[HowTo] node-java : Using SikuliX features through API --- tipps and tricks

Description changed to:
 Mac: Instantiating SikuliX class hangs: solution (from 
comment #12)
Adding:

process.env['JAVA_STARTED_ON_FIRST_THREAD_' + process.pid] = '1'

before instantiating any Sikuli classes through node got it working. :)

--

I'm using the node-java module (https://github.com/joeferner/node-java)
as a bridge between some nodejs test scripts and the SikuliX Java API.
It's working great on Windows, but when I try to run the same scripts on
Mac, it hangs at the first point where it tries to instantiate any class
from SikuliX. Specifically, it opens up a little GUI app whose label is
just "bin" and which has no windows; command-clicking to see its
location takes me to /usr/local/bin (which raises more questions than it
answers). When I force quit the app, the script doesn't resume, it just
ends.

Using the API and the command line tool work fine (although of course
they're not compatible with my Node scripts) -- and using node-java with
any other Java package on Mac also works fine. So neither one is broken
alone, and I'm not sure what about the combination causes this error. I
realize how much of an edge case this is, but any suggestions about what
might be going on or where I could look would be much appreciated.

I've tried SikuliX 1.1.1 and 1.1.2, in both cases by completing the
setup normally (taking options #1 and #2) and then copying the generated
sikulixapi.jar into the folder I'm working in. Java JDK version is
1.8.0, macOS 10.13.3.

-- 
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 #665357]: Click on text captured from Screen().text()

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

Status: Open => Answered

RaiMan proposed the following answer:
instead of
Screen().text() (BTW: Screen(). not necessary - simply text() is enough for 
whole screen)

you might use
someRegion.text()

after before having evaluated someRegion with other SikuliX features
simpliest as
someRegion = Region(x, y, w, h) 

or
someRegion = selectRegion() # interactive

or with the many other features, that aloow to define a region relative
to other regions or locations 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


Re: [Sikuli-driver] [Question #665698]: How to use type function to input combined keys of HOME and SHIFT ?

2018-03-16 Thread masuo
Question #665698 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665698

Status: Open => Answered

masuo proposed the following answer:
There is a similar question.
https://answers.launchpad.net/sikuli/+question/285144

-- 
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 #665698]: How to use type function to input combined keys of HOME and SHIFT ?

2018-03-16 Thread Stranger
New question #665698 on Sikuli:
https://answers.launchpad.net/sikuli/+question/665698

I want to select one line text in script by combined keys of HOME and SHIFT, 
but it dosen't work.
My script is :
type(Key.END)
wait(1)
type(Key.HOME, Key.SHIFT)
wait(1)
type('C', Key.CTRL)
wait(1)
print Env.getClipboard()

But from UI, the line text can't be selected. Is there any problem in my 
script? 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