Jump to content

New to AutoIT simple question


jdaly
 Share

Recommended Posts

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

...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

I checked the help file but it doesnt contain any info on variables for dates.

Thanks

If 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...