Question #453545 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/453545
Status: Open => Answered
RaiMan proposed the following answer:
first snippet:
Using version 1.1.1 this works:
class Randomcb {
Random ran = new Random();
Region reg = new Screen();
public void RndClik(String path) {
Match match = reg.exists(path);
if (null != match) {
match.getCenter().offset(ran.nextInt(match.w),
ran.nextInt(match.h)).click();
}
}
}
--
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 : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp