sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #48976
Re: [Question #675153]: Sikuli farming (gaming) code random and undetectable
Question #675153 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675153
Status: Answered => Open
Meadows is still having a problem:
I attempted to have 1 line in a new document to test how this works and
got an error. As mentioned, I don't know a lot with coding so am
probably doing this wrong.
Any suggestions?
I wrote:
i = 'start image on bottom left of windows 10'
click(Location(random.randint(i.getX(),i.getX()+i.getW()),random.randint(i.getY(),i.getY()+i.getH())))
Error:
NameError: name 'random' is not defined.
Also, any idea on programming a random wait time?
wait(3) is what I have now
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.