jdaly Posted December 7, 2006 Share Posted December 7, 2006 I am very new to AutoIT and just playing around with it right now. I am just trying to figure out a way of sending todays date to a notepad file. Basically i just want to have autoit send "Todays date is 12-7-06" but cant figure out how. I checked the help file but it doesnt contain any info on variables for dates. Thanks Link to comment Share on other sites More sharing options...
herewasplato Posted December 7, 2006 Share Posted December 7, 2006 Run("notepad.exe")Send("@YDAY @MON @MDAY")search @mon in the helpfileDid you try to run the code that you posted? [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
herewasplato Posted December 7, 2006 Share Posted December 7, 2006 ...Basically i just want to have autoit send "Todays date is 12-7-06" but cant figure out how...Run("notepad.exe") WinWait("Untitled - Notepad") Send("Today's date is " & @MON & "-" & @MDAY & "-" & @YEAR) Send("{ENTER 2}") Send("{F5}")maybe just F5 will do for you or this info: http://support.microsoft.com/kb/260563 [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
mikehunt114 Posted December 7, 2006 Share Posted December 7, 2006 I checked the help file but it doesnt contain any info on variables for dates. ThanksIf you look a little closer, the helpfile has a Date Macros section. Cheers. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font] Link to comment Share on other sites More sharing options...
jdaly Posted December 7, 2006 Author Share Posted December 7, 2006 Well Im not really doing it in notepad. I just said that because its similar to my application and the question was the same. Thanks to all for the help. So far AutoIT looks like a really useful program. Link to comment Share on other sites More sharing options...
herewasplato Posted December 7, 2006 Share Posted December 7, 2006 @jdaly, Welcome to the forum... @Dethredic, Sorry about that - I know that there is not always time to test code before you post. [size="1"][font="Arial"].[u].[/u][/font][/size] 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