Re: [Sikuli-driver] [Question #668667]: Return the dimensions of an image that's just been found

2018-05-08 Thread arminius
Question #668667 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668667

Status: Open => Solved

arminius confirmed that the question is solved:
Thanks masuo, 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


[Sikuli-driver] [Question #668758]: Trying to externalize the target offset, the same as I have with the similarity

2018-05-08 Thread arminius
New question #668758 on Sikuli:
https://answers.launchpad.net/sikuli/+question/668758

So this is an example that works

mySimilarity = 0.81
if 
exists(Pattern(Pattern("1519473014822.png").targetOffset(1,-13)).similar(mySimilarity)):

But I'm wanting to do the same with targetoffset

mySimilarity = 0.81
testtargetOffset = "1,-8"
if 
exists(Pattern("1525837542502.png").targetOffset(testtargetOffset)).similar(mySimilarity)):

But no matter how many times I play aroud with the Colons it's never happy.

-- 
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 #668708]: Saving captured image to hard drive using python

2018-05-08 Thread arminius
Question #668708 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668708

Status: Needs information => Solved

arminius confirmed that the question is solved:
Sorry, I put the image names down wrong.
In what I'm trying to do, if you have an image that has been seen a 100 times, 
and an image that has been seen none.
I want it to capture the dimensions of the image that's been found and get a 
newer snapshot of it, then transfer it over to replace the image that's never 
been seen.

I got it to work based on what you sent me.
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 #668742]: Find a image, do a action.

2018-05-08 Thread RaiMan
Question #668742 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668742

Status: Open => Answered

RaiMan proposed the following answer:
see faq 1437 and faq 1800

-- 
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 #668736]: exists(image) is true even when the image is not there yet

2018-05-08 Thread Miyamoto
Question #668736 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668736

Description changed to:
Good morning.

I am developing a game bot with infinite loop with many if's conditions,
it's almost done, the main problem is one of the if exists(image) is
getting true when the image is not there.

example:

while (ch.hasWindow() & running):

if exists(image1):
do something
break

if exists(image2):
do another thing
break:

if exists(image3):

img = find(image3)
click(img)

...

The if exists(image3): is the last if inside while loop, but it's
getting true even when the image is not there yet.

[error] script [ arrayDeMonstros ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File 
"C:\SikuliX\arrayDeMonstros.sikuli\arrayDeMonstros.py", line 43, in  
hero = find(heroMax) Line 2782, in file Region.java 
at org.sikuli.script.Region.wait(Region.java:2782)
at org.sikuli.script.Region.find(Region.java:2329)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
org.sikuli.script.FindFailed: FindFailed: 1524942610020.png: (822x628) seen at 
(46, 128) with 0,94 in S(0)[0,0 1920x1080] E:Y, T:3,0 Line 2782, in file 
Region.java

-- 
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 #668742]: Find a image, do a action.

2018-05-08 Thread James Karlsson
New question #668742 on Sikuli:
https://answers.launchpad.net/sikuli/+question/668742

Hi. Im very bad at scripting, thats why im here writing. Im trying to make a 
script find a image, when that image is found it should perform a rightclick 
action and wait 0.5sec. Then perform a rightclick action again and loop. So, 
find image - rightclick - wait 0.5s - rightclick - loop. Ive been looking all 
over here but still dont understand. As i said im bad at this. Thanks for the 
help in advance.

-- 
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 #668736]: exists(image) is true even when the image is not there yet

2018-05-08 Thread Miyamoto
Question #668736 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668736

Status: Needs information => Open

Miyamoto gave more information on the question:
Sorry, fixed , it's "if exists(image1):" in all if's

-- 
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 #668736]: exists(image) is true even when the image is not there yet

2018-05-08 Thread Miyamoto
Question #668736 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668736

Description changed to:
Good morning.

I am developing a game bot with infinite loop with many if's conditions,
it's almost done, the main problem is one of the if exists(image) is
getting true when the image is not there.

example:

while (ch.hasWindow() & running):

if exists(image1):
do something
break

if exists(image2):
do another thing
break:

if exists(image3):

img = find(image3)
click(img)

...

The if(image3): is the last if inside while loop, but it's getting true
even when the image is not there yet.

[error] script [ arrayDeMonstros ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File 
"C:\SikuliX\arrayDeMonstros.sikuli\arrayDeMonstros.py", line 43, in  
hero = find(heroMax) Line 2782, in file Region.java 
at org.sikuli.script.Region.wait(Region.java:2782)
at org.sikuli.script.Region.find(Region.java:2329)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
org.sikuli.script.FindFailed: FindFailed: 1524942610020.png: (822x628) seen at 
(46, 128) with 0,94 in S(0)[0,0 1920x1080] E:Y, T:3,0 Line 2782, in file 
Region.java

-- 
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 #668736]: exists(image) is true even when the image is not there yet

2018-05-08 Thread Manfred Hampl
Question #668736 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668736

Status: Open => Needs information

Manfred Hampl requested more information:
Do you have

if (image1):

or

if exists(image1):

in your script?

-- 
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 #668736]: exists(image) is true even when the image is not there yet

2018-05-08 Thread Miyamoto
Question #668736 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668736

Description changed to:
Good morning.

I am developing a game bot with infinite loop with many if's conditions,
it's almost done, the main problem is one of the if exists(image) is
getting true when the image is not there.

example:

while (ch.hasWindow() & running):

if (image1):
do something
break

if (image2):
do another thing
break:

if (image3):

img = find(image3)
click(img)

...

The if(image3): is the last if inside while loop, but it's getting true
even when the image is not there yet.

[error] script [ arrayDeMonstros ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File 
"C:\SikuliX\arrayDeMonstros.sikuli\arrayDeMonstros.py", line 43, in  
hero = find(heroMax) Line 2782, in file Region.java 
at org.sikuli.script.Region.wait(Region.java:2782)
at org.sikuli.script.Region.find(Region.java:2329)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
org.sikuli.script.FindFailed: FindFailed: 1524942610020.png: (822x628) seen at 
(46, 128) with 0,94 in S(0)[0,0 1920x1080] E:Y, T:3,0 Line 2782, in file 
Region.java

-- 
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 #668736]: exists(image) is true even when is false

2018-05-08 Thread Miyamoto
New question #668736 on Sikuli:
https://answers.launchpad.net/sikuli/+question/668736

Good morning.

I am developing a game bot with infinite loop with many if's conditions, it's 
almost done, the main problem is one of the if exists(image) is getting true 
when the image is not there.

example:

while ch.hasWindow() & running:

if (image1):
do something
break

if (image2):
do another thing
break:

if (image3):

img = find(image3)
click(img)

...

The if(image3): is the last if inside while loop, but it's getting true even 
when the image is not there yet.

[error] script [ arrayDeMonstros ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File 
"C:\SikuliX\arrayDeMonstros.sikuli\arrayDeMonstros.py", line 43, in  
hero = find(heroMax) Line 2782, in file Region.java 
at org.sikuli.script.Region.wait(Region.java:2782)
at org.sikuli.script.Region.find(Region.java:2329)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
org.sikuli.script.FindFailed: FindFailed: 1524942610020.png: (822x628) seen at 
(46, 128) with 0,94 in S(0)[0,0 1920x1080] E:Y, T:3,0 Line 2782, in file 
Region.java 



-- 
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 #668736]: exists(image) is true even when the image is not there yet

2018-05-08 Thread Miyamoto
Question #668736 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668736

Summary changed to:
exists(image) is true even when the image is not there yet

-- 
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 #218275]: Get text from screen in sikuli using offset

2018-05-08 Thread Rishabh Sharma
Question #218275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218275

Rishabh Sharma requested more information:
The above error is resolved but  while running i am getting this error.

OrderNumber.png looks like a file, but can't be found on the disk.
Assume it's text.

-- 
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 #218275]: Get text from screen in sikuli using offset

2018-05-08 Thread Rishabh Sharma
Question #218275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/218275

Rishabh Sharma requested more information:
I have integrated sikuli with open script and I am also applying the
same Code for capturing the text from application but its giving an
error as :

String foundText;
foundText = find("img.png").right(100).text();

The method find(String) is undefined for the type script

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