sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13880
Re: [Question #212205]: Finder class
Question #212205 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/212205
Status: Open => Answered
RaiMan proposed the following answer:
correct usage of Finder class:
for i in range(len(communications)):
sleep(1)
f = Finder(communications[i]) # setup the Finder
result = f.find("E.png") # search and return a Match Iterator
if result.hasNext(): # check if we have one match
hover(communications[i])
else:
sleep(0.5)
if exists(communications[i]):
keyDown(Key.CTRL)
click(getLastMatch())
keyUp()
f.destroy()
exit()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.