New question #640445 on Sikuli:
https://answers.launchpad.net/sikuli/+question/640445
Hi, I have been trying to write a program for days now. It was supposed to scan
for either of the 3 images. This is how I originally wrote, and obviously, it's
not working. It detects only the 1st image, and co
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Hossain Abeer gave more information on the question:
Later I have also tried this method, but again, not working
while True:
if exists((imgA or imgB or imgC), 3600):
click...
t
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Open => Answered
masuo proposed the following answer:
How to click when SikuliX find one of the three.
if exists("imageA.png",0) or exists("imageB.png",0) or exists("imageC.png",0):
click("
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Answered => Open
Hossain Abeer is still having a problem:
Hi masuo,
Thanks for your effort, but that didn't work. Any other method?
--
You received this question notification because your team
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Open => Needs information
masuo requested more information:
What is it that it didn't work by #2 method?
--
You received this question notification because your team Sikuli Drivers
is an answer
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Hossain Abeer posted a new comment:
This one:
if exists("imageA.png",0) or exists("imageB.png",0) or exists("imageC.png",0):
click("imageO.png")
still cant detect the other 2 images.
--
You received t
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Needs information => Answered
masuo proposed the following answer:
In case of using exists("imageA.png",0), exists("imageB.png",0) and
exists("imageC.png",0) individually, to detect each image i
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
masuo proposed the following answer:
In case it takes time until A, B, C appears,use "while".
counter = 3600
while True:
if exists("imageA.png",0) or exists("imageB.png",0) or
exists("imageC.png",0):
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
masuo proposed the following answer:
Sorry, I forgot to add condition.
while True: <--- mistake
while counter > 0:
--
You received this question notification because your team Sikuli Drivers
is an answ
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Answered => Open
Hossain Abeer is still having a problem:
They didn't work
#6 had problem running the script, and the script couldn't be even
saved.
#7 and #8 ran, but still couldn't detect ima
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Open => Needs information
masuo requested more information:
@Hossain Abeer
I use SikuliX1.1.1 on Windows, I can save #6 script.
What is your environment?
--
You received this question notifi
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Needs information => Open
Hossain Abeer gave more information on the question:
Sikulix IDE1.1.0
I have both Java and Python IDEs installed on computer. Running Windows
10, 64bit
--
You receive
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Hossain Abeer gave more information on the question:
I checked for update from the SikuliX app, but it says no update
available. Does this mean that I must download and install version 1.1.1
manually?
--
Yo
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
masuo posted a new comment:
I tried SikuliX IDE1.1.0 on Windows10,64bit too.
#6 script worked.
Sorry I have no idea anymore , please wait other people's comment.
--
You received this question notification b
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Hossain Abeer gave more information on the question:
I am now running SikuliX IDE 1.1.1.
and i tried the following script
click(G)
while True:
if exists ((A or B or C), 3600): #A B C are the main im
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Open => Answered
masuo proposed the following answer:
This is comment to the following code
if exists(A, 3600) or exists(B, 3600) or exists(C, 3600):
A is not visible on screern, SikuliX wait
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Answered => Open
Hossain Abeer is still having a problem:
Well then, this isn't working either
if exists ((A or B or C), 3600):
--
You received this question notification because your team Si
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Hossain Abeer gave more information on the question:
Even if A reappears seconds later, the program can detect it and act
over and over again. So I am guessing it is completely ignoring the
other two B and C.
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Open => Answered
masuo proposed the following answer:
This is comment to #16.
Why you set multiple parameter to exists()?
It is posible to set parameter to exists() only a Pattern object or a st
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Answered => Open
Hossain Abeer is still having a problem:
But I have used other methods too, but still couldn't detect the other
two images. Your method #2 didn't work as well.
In all the cases,
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Hossain Abeer gave more information on the question:
Hi,
after many trials and errors, i have come up with this script.
click(G)
while True:
if exists(A, 0) or exists(B, 0) or exists(C, 0):
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
RaiMan proposed the following answer:
Sorry for doubling, the thread is rather complex ;-)
... after having done, what is needed for the different appearance
combinations, it might be necessary to start all
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Open => Answered
RaiMan proposed the following answer:
if exists(A, 3600) or exists(B, 3600) or exists(C, 3600):
will never work in your sense, since the or-condition is true if the first test
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Answered => Open
Hossain Abeer is still having a problem:
Hi RaiMan,
thanks for dropping in. Finally, i can get to talk to the legend of
Sikuli.
Do it need to end the script with
else:
sle
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Open => Answered
RaiMan proposed the following answer:
if I understand your intention right and the indentation, then this
script should never end:
# this loop will run forever, see comment
whil
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
RaiMan proposed the following answer:
Nevertheless: the solution in comment #21 is the more general solution:
# now with an outer loop, that needs to be interrupted using "ALT+SHFT+C"
while True:
while T
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Answered => Solved
Hossain Abeer confirmed that the question is solved:
Thanks RaiMan, that solved my question.
--
You received this question notification because your team Sikuli Drivers
is an
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Solved => Open
Hossain Abeer is still having a problem:
Hi,
The script #25 solved my problem, and performs accordingly. But a new
objective has arisen from this.
Say, the program has detected B
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Open => Answered
RaiMan proposed the following answer:
--- didn't work. the program quits.
The above code cannot simply quit silently. So there must have been an error
message. In this case beca
Question #640445 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/640445
Status: Answered => Solved
Hossain Abeer confirmed that the question is solved:
Thanks RaiMan, that solved my question.
--
You received this question notification because your team Sikuli Drivers
is an
30 matches
Mail list logo