← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #271789]: How do I use type command to enter current date and time ?

 

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

    Status: Open => Answered

masuo proposed the following answer:
I recommend paste() instead of type().

import    datetime
t = datetime.datetime.today()

#Click on the input position of the date 
paste(t.strftime("%Y/%m/%d"))

#Click on the input position of the time
paste(t.strftime("%H:%M:%S"))

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