← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #651162]: Is there a way to limit the speed of keystrokes performed when the type() statement is used

 

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

    Status: Open => Answered

Roman Podolyan proposed the following answer:
Fixed and tested example (use some text editor blank document opened on screen for demo)
_________

def type_slow(data,interval):
    letters = list(data)
    for i in range(0, len(data)):
        type(letters[i])
        time.sleep(interval)


click(Location(400,400))
type_slow("Hello world!",0.3)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.