sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05015
Re: [Question #169899]: random key stroke
Question #169899 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169899
RaiMan proposed the following answer:
until you have it stable:
import random # only once at beginning of script
z = random.randint(3,6) # each time you need a new value BEFORE it is used
print "random number:", z # for debug purposes
for n in range(z):
type(Key.TAB)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.