Re: [Sikuli-driver] [Question #673707]: [1.1.4] using Javascript - how to?

2018-09-11 Thread BrazilMac
Question #673707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673707

BrazilMac posted a new comment:
Hi RaiMan, thanks so much!!! This would be such great 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 #673704]: How to get program to capture part of the App.focusedWindow()?

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

Status: Open => Answered

RaiMan proposed the following answer:
--- because can't make sure that the window is always in the same range.
exactly for that you have the App.focusedWindow(), because it gives you the 
region of the app window, wherever it is.

--- cause a part of area will always change
your shots, that you want to find/compare, should be as small as possible 
concentrating on what is really of interest (in this case your button).
With 1.1.4 you have the masking feature, that allows to ignore parts of the 
image when searching.

I guess you should go back and try to understand, how SikuliX really
works and about the Region concept, which is very flexible.

-- 
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 #673707]: Javascript Examples Anywhere?

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

Status: Open => Answered

RaiMan proposed the following answer:
I will try to give you an idea asap.

-- 
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 #673707]: [1.1.4] using Javascript - how to?

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

Summary changed to:
[1.1.4] using Javascript - how to?

-- 
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 #673707]: [1.1.4] using Javascript - how to?

2018-09-11 Thread BrazilMac
Question #673707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673707

BrazilMac posted a new comment:
Thanks Raiman,

As I plan to run this on Linux, I am running 1.1.3 instead. On my Ubuntu
16 box I have Java

OpenJDK 1.8.0_181
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

-- 
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 #673707]: [1.1.4] using Javascript - how to?

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

RaiMan proposed the following answer:
Uuuups, too fast ;-)

I just realized: Java 11 does not have the Nashorn (JavaScript) engine anymore.
Since I will completely switch to Java 11, I have a problem now.

An option for you is to stay with Java 10, until another solution is
available (GraalVM, Rhino, ...).

But coming from the Node environment: Do not expect too much, only the
basic language elements are supported. The rest is done at the Java
level (and of course nothing related to DOM and all the web stuff).

May be it is better to decide for either Python or Ruby as scripting
language (the syntax structure of Ruby might be more familiar for
JavaScript users).

Nevertheless, I will be back with comment #1 asap

-- 
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 #672975]: TextRecognition within Java (SikuliApi 1.1.4)

2018-09-11 Thread Launchpad Janitor
Question #672975 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/672975

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
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 #673704]: How to get program to capture part of the App.focusedWindow()?

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

Status: Open => Answered

RaiMan proposed the following answer:
Uuups, why so complicated?

some_region = App.focusedWindow()
setBundlePath(dir)
if some_region.has(Pattern("A").similar(0.85)):
print "Image is matching"
else:
print "Image is not matching"

-- 
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 #673704]: How to get program to capture part of the App.focusedWindow()?

2018-09-11 Thread Winnie Hsu
Question #673704 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673704

Status: Answered => Open

Winnie Hsu is still having a problem:
oh, thanks.  I don't want to compare entire app, cause a part of area will 
always change. I want to compare another area to confirm a button is clickable 
and work well. 
My English is bad, hope somebody can understand :(   
I try to adjust the similar to ignore the always changed part, but sometimes 
the result is wrong. I don't use region because can't make sure that the window 
is always in the same range.

-- 
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 #673707]: [1.1.4] using Javascript - how to?

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

RaiMan proposed the following answer:
LOL ---  just realized, that the basics are already in the docs:
https://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-javascript

If you want to dig into the gory details - come back.
Ideas and contributions are highly welcome ;-)

-- 
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 #673341]: Cant Open Certain Apps using App.open() or os.popen()

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

Status: Open => Solved

RaiMan changed the question status:
Seems to be

-- 
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 #673707]: Javascript Examples Anywhere?

2018-09-11 Thread BrazilMac
New question #673707 on Sikuli:
https://answers.launchpad.net/sikuli/+question/673707

Hi Everyone,

I am new to SIkuli, I managed to code a simple script using the IDE...I am a 
proficiend JS/Node dev and Im wondering if there are any examples of a script 
written in pure javascript, is it possible? And if so, whats the approach for 
call all the functions as in the IDE, do I need to make any "require" and such? 
I needed some more advanced stuff but a bit stuck here

Thanks again

-- 
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 #672975]: TextRecognition within Java (SikuliApi 1.1.4)

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

RaiMan posted a new comment:
If it is Mac or windows, then it should work.

For linux read that:
https://sikulix-2014.readthedocs.io/en/latest/newslinux.html

-- 
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 #673341]: Cant Open Certain Apps using App.open() or os.popen()

2018-09-11 Thread BrazilMac
Question #673341 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673341

Status: Needs information => Open

BrazilMac gave more information on the question:
Hi Raiman, apologies for the delay, was away!

OSX El Captain 10.11.16

java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

I have a docker build running Ubuntu 16 and it works fine there :D

-- 
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 #673701]: No installed runner problem

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

Status: Open => Answered

RaiMan proposed the following answer:
Jython is missing - see Download page.

-- 
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 #673707]: [1.1.4] using Javascript - how to?

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

Description changed to:
DOCS: 
https://sikulix-2014.readthedocs.io/en/latest/scenarios.html#using-javascript

--
Hi Everyone,

I am new to SIkuli, I managed to code a simple script using the IDE...I
am a proficiend JS/Node dev and Im wondering if there are any examples
of a script written in pure javascript, is it possible? And if so, whats
the approach for call all the functions as in the IDE, do I need to make
any "require" and such? I needed some more advanced stuff but a bit
stuck here

Thanks again

-- 
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 #673707]: [1.1.4] using Javascript - how to?

2018-09-11 Thread BrazilMac
Question #673707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/673707

BrazilMac posted a new comment:
I will check it out and come back :D

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