Problem entering CurrentDate in field on Window

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
ssudduth
Newbie
Posts: 1
Joined: Thu Feb 26, 2004 8:26 pm
Location: Jackson MS

Problem entering CurrentDate in field on Window

Post by ssudduth » Thu Feb 26, 2004 8:33 pm

I'm trying to enter the currentdate into a field on a window. The field is actually some sort of date/calendar control, as you can use the up and down arrow keys to change the date. When I added Send> CurrentDate to the script, it just stops and beeps, but won't populate the field with the currentdate.
Any suggestions?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Feb 26, 2004 10:22 pm

Send> CurrentDate
will not work.

Send> only sends keystroke characters, so this is the same as typing in the word CurrentDate where ever the cursor happens to be.

This will work if CurrentDate is actually a variable that was made from GetDate>, like this:
GetDate>CurrentDate
Send>%CurrentDate%
Be sure that the cursor is in a field that can accept the value of %CurrentDate%. Also, the date entered will be in the format as defined by your System.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Lumumba

Post by Lumumba » Thu Feb 26, 2004 10:34 pm

Is possible to edit that field manualy?
Could you select (mark) the default entry (which I guess is the current day)?
Could you select that specific date/field doing an increment entry?
Which date format is used in that field (YYYY/MM/DD; DD.MM.YYYY; MM/DD/YY, ...)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts