← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #217558]: I can agenerate random numbers, need to type them

 

Question #217558 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/217558

    Status: Open => Answered

RaiMan proposed the following answer:
import random
num = random.randrange(10000000000,10000000000000)
type(str(num))

works if the input field has focus already.

otherwise your have to somehow give focus before or with the type
(click(...), type(Key.TAB), ...)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.