Using variable to fill text boxes

Asked by stick

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:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
LP81
Solved:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
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)

Revision history for this message
stick (frasersnow) said :
#3

Thanks LP81, that solved my question.