Sign in to follow this  
Followers 0
copyleft

Insert current date into dialog box

7 posts in this topic

:) I'm sure this has been covered but a search doesn't turn up anything. How do you insert the current date into a save file field?

Share this post


Link to post
Share on other sites



:) I'm sure this has been covered but a search doesn't turn up anything. How do you insert the current date into a save file field?

FileSaveDialog("Select File:","C:\","Text Files (*.txt)",18,@MDAY & "-" & @MON & "-" & @YEAR)

"There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110

Share this post


Link to post
Share on other sites

another alternative

#include <file.au3>
;
_FileWriteLog(@ScriptDir & "\my.log","Text 1")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

another alternative

#include <file.au3>
;
_FileWriteLog(@ScriptDir & "\my.log","Text 1")

8)

Thanks for the help guys. But neither example is precisely what I'm looking for.

The application opens it's own "save as" dialog; not a standard Windows "save as" window.

I think I need to issue a command that creates the current date copies it to the clipboard and then pastes it into the application with the correct file extention attached.

Maybe the functions "clipget" and "clipput" will work but I don't know how to automatically send the current date to the clipboard nor add the extention when I paste the date.

Share this post


Link to post
Share on other sites

One last try...

In the graphic where it says type current date here.mdb, I need to automatically add the current date with an mdb extention. Anyway to do that?

Share this post


Link to post
Share on other sites

try getting the control ID and do a controlsend, to get the control ID use autoits window info

Share this post


Link to post
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
Sign in to follow this  
Followers 0