Using variable to fill text boxes

Asked by stick on 2010-02-03

I would like to enter a date in several different text boxes. Is there a way to ask the user for a date, then use TYPE() to enter it into the fields.

I also tried
y="03-FEB-2010 00:00:00"
type(y)
This seemed to error.
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
LP81
Solved:
2010-02-03
Last query:
2010-02-03
Last reply:
2010-02-03
RaiMan (raimund-hocke) said : #1

I guess the typed app gives the error?

your app receives 03-FEB-2010 00:00:00 in the input field - is this what you want?

type does not convert any text. You have to convert it into an string, that is accepted by the receiving app.

Best LP81 (pjbreen) said : #2

To ask the user for a date you can just do

date = input("Date?")

then any place it needs to be added use:

type(date)

stick (frasersnow) said : #3

Thanks LP81, that solved my question.