pilotic Posted October 19, 2006 Share Posted October 19, 2006 I am trying to determine how to generate a script that will run daily - and type in today's date in the format of mmddyyyy in a data entry field. I am can setup all other data entry fields - but don't know how to generate the value for today - and then have the script type the value of that field. Any help is appreciated. Thanks! Link to comment Share on other sites More sharing options...
Paulie Posted October 19, 2006 Share Posted October 19, 2006 I am trying to determine how to generate a script that will run daily - and type in today's date in the format of mmddyyyy in a data entry field. I am can setup all other data entry fields - but don't know how to generate the value for today - and then have the script type the value of that field. Any help is appreciated. Thanks! $Day = @Month&@Day&@Year Link to comment Share on other sites More sharing options...
pilotic Posted October 19, 2006 Author Share Posted October 19, 2006 $Day = @Month&@Day&@Year When I try this [$Day = @Month&@Day&@Year MsgBox(0,"Today","Today's date is " & $Day)] I get an error saying undefined macro. I am using version 3.2.0.1 Thoughts as to what is wrong? Link to comment Share on other sites More sharing options...
Rad Posted October 19, 2006 Share Posted October 19, 2006 (edited) $Day = @MON &"/"& @WDAY &"/"& @Year MsgBox(0,"Today","Today's date is " & $Day) oh and instead of using [ ] use [ autoit ] [ /autoit] (no spaces) it formats the script like that in the forums Edited October 19, 2006 by Rad Link to comment Share on other sites More sharing options...
Paulie Posted October 19, 2006 Share Posted October 19, 2006 $Day = @MON &"/"& @WDAY &"/"& @Year MsgBox(0,"Today","Today's date is " & $Day) oh and instead of using [ ] use [ autoit ] [ /autoit] (no spaces) it formats the script like that in the forumsYeah, i think i was drunk when i made my last post Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now