sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41488
Re: [Question #453545]: Let click in a region randomly
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.