Or, instead of an unnecessarily complicated script
which does a whole load of string manipulations,
"pharm_dog" could just paste one command
into his hotkey or macro's Command field:
win.keys(formatdate("d/M/yyy",date.adddays,-1))
which will type 10/11/2004 where the focus is.
Not only is it much shorter, not needing a script,
it will also be much easier to change the format
of the date if he wishes.
Just read Help Index "format a date or time".
If he uses the script, how would he edit it to adjust whether
the day and month are shown with/without a leading zero?
Or change it to show the date as "11 November 2004"?
Using formatdate() he could just change it to
win.keys(formatdate("d/MMMM/yyy",date.adddays,-1))
___________________________________________
By the way its better to use "date.adddays,-1"
instead of "date - 1" because the latter will not cope
when it is the first of the month (yesterday was last month).
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/