xox
New Member
Posts: 3
|
Post by xox on Jan 25, 2017 8:58:11 GMT
can i use getTarget() from existsClick() ?
my example script is here.
stopHere = Pattern(patternn) foundThis = regionSet:existsClick(stopHere, 5)
if foundThis then toast("loc: "..foundThis:getTarget()) end i know the return value existsClick() is boelan, or i just missed other method? i need finding the image without any exception if not found, i try find() but throw exception.
i'm so sorry for my bad english.
edited, i found it... just used getLastMatch()
toast("loc: "..getLastMatch():getTarget())
|
|
|
Post by vampiredbr9 on Jan 29, 2017 11:05:50 GMT
can i use getTarget() from existsClick() ? my example script is here. stopHere = Pattern(patternn) foundThis = regionSet:existsClick(stopHere, 5)
if foundThis then toast("loc: "..foundThis:getTarget()) end i know the return value existsClick() is boelan, or i just missed other method? i need finding the image without any exception if not found, i try find() but throw exception. i'm so sorry for my bad english. edited, i found it... just used getLastMatch() toast("loc: "..getLastMatch():getTarget()) Hi XOX. Could you please post the error message you are getting? Thanks
|
|