Re: [Sikuli-driver] [Question #293519]: [1.1.x] external IDE: How to setup/configure JetBrains PyCharm

2018-04-14 Thread sdraganov
Question #293519 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/293519

sdraganov posted a new comment:
I'm another guy with zero experience in programming who can't manage to 
configure external IDE to use SikuliX.
Tried with Eclipse and PyCharm by following multiple guides but never succeed.

I got SikuliX IDE working just fine, Jython 2.7 is properly installed and 
PyCharm can see it:
https://i.imgur.com/WfsFq1p.png

I'm creating new project with Jython as Interpreter:
https://i.imgur.com/9GNssVK.png

Hello World seems to work fine after executing Run:
https://i.imgur.com/YOzxUJI.png

sikilixapi.jar is added to CLASSPATH variable:
https://i.imgur.com/DVlhzY6.png

So far so good, but when I add the following two lines  I got an error when Run 
is executed:
import org.sikuli.script.SikulixForJython
from sikuli import *
https://i.imgur.com/93NJVIX.png

What I'm doing wrong?

Thanks 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 #667906]: IDE problems notification Mac

2018-04-14 Thread Joseph
Question #667906 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667906

Status: Answered => Solved

Joseph 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


[Sikuli-driver] [Bug 878864] Re: [request] want Pattern.anySize() and Pattern.anyColor()

2018-04-14 Thread m.shams
Actually I think these features are really important because, It's really hard 
to develop a complicated automation script that just works on the first 
developer PC.
The only solution that I've found is to use an image scaling routine as 
pre-processing by considering the first resolution and the current resolution.
It's just an idea but theoretically it should works. Have you any other idea?

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

Title:
  [request] want Pattern.anySize() and Pattern.anyColor()

Status in Sikuli:
  In Progress

Bug description:
  as a general solution, Sikuli needs to know, how the image should be
  rescaled.

  the same image is found in different screen resolutions by Sikuli
  though.

  --- 
  based on the original description of the planned Sikuli features:

  anySize() was supossed to solve different resolutions problems.

  But it is not yet available in Sikuli script.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/878864/+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 #667906]: IDE problems notification Mac

2018-04-14 Thread RaiMan
Question #667906 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667906

RaiMan proposed the following answer:
http://sikulix.com
-> nightly builds

-- 
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 #667906]: IDE problems notification Mac

2018-04-14 Thread Joseph
Question #667906 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667906

Joseph posted a new comment:
Sorry I cannot seem to find SikuliX 1.1.3

Is it on this site? https://launchpad.net/sikuli/+download

-- 
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 #667921]: if wait(img1) or wait(img2) in statement

2018-04-14 Thread masuo
Question #667921 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667921

Status: Open => Answered

masuo proposed the following answer:
I think onAppear() or findAny() is useful for your case.
http://sikulix-2014.readthedocs.io/en/latest/region.html#find-more-than-one-image-in-a-region-at-the-same-time
http://sikulix-2014.readthedocs.io/en/latest/region.html#Region.onAppear

[example findAny()]
imagelist = ["image000.png","image001.png"]
sleeptm = 1 #ajust according to what you want to do
while True:
idlist = []
matchlist = findAny(imagelist)
if len(matchlist)>0:
for m in matchlist:
idlist.append(m.getIndex())
break
sleep(sleeptm)

for id in idlist:
print imagelist[id] + " was found"

-- 
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 #667921]: if wait(img1) or wait(img2) in statement

2018-04-14 Thread Adrian
New question #667921 on Sikuli:
https://answers.launchpad.net/sikuli/+question/667921

Hi there,

i need to wait for one of two images aroud 30 or 240 sec max, and depends on 
what img is shown do some actions. 
Is it possible to do something like that statement?

if wait(IMG1, 240) or wait(IMG2, 240): #script is waiting for one of the images 
to appear and after i do statement depends on what img appeared
if exists(IMG1) :
 do some action
elif exists(IMG2): 
do another action

now im waiting for IMG1 "wait(IMG1, 240).highlight(1)" which is the best for me 
becouse IMG1 is appearing more than 80% time, and wait(IMG, 240) can recognise 
him even if he appear in 40 sec and after that it clicks it instantly without 
waiting full 240 sec. If IMG2 is appear i ofcourse got error and need to run 
script again... i want to avoid that ;)

PS i dont want to use if exists(IMG, 240)  like in 
https://answers.launchpad.net/sikuli/+question/644269 
becouse i dont want to wait full 240 sec always, especially when exists() is 
called sequentially it means that if IMG2 appear i would wait 480 sec to do 
action... only action after img shown is acceptable for me if it's possible of 
course :)

Thank You 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 #667197]: how can i check if value is integer or string? Err in conversion

2018-04-14 Thread Adrian
Question #667197 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667197

Status: Answered => Solved

Adrian 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 #667906]: IDE problems notification Mac

2018-04-14 Thread RaiMan
Question #667906 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667906

Status: Open => Answered

RaiMan proposed the following answer:
You are on Java 9 or 10 on Mac.

use SikuliX 1.1.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