Jump to content

Send actual date and time


pixi
 Share

Recommended Posts

is it possible to send the actual date and time as a text to for exampel notepad???

can i use this for the funktion??

#include <Date.au3>

MsgBox( 4096, "", "Todays date/Time: " & _Now() )

Thanks Andreas

The answer to that lies in actuallu running the code you posted. What happens when you create a script with exactly what you posted?

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Your code will put the info in a MsgBox... because that is what you told it to do. If you want to send it to Notepad, then make certain notepad is the active window and then use the send command or there are a half a dozen other ways you could do it, it all depends on what you are wanting to accomplish.

[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Link to comment
Share on other sites

sorry for my bad infomation

i know that this script will give a msgbox with the date :-)

The question is. i want to write a send command that will send the actual date and time in text to a external program ,(notepad)

Thanks Andreas

Link to comment
Share on other sites

Post an example of exactly what you expect to be sent to notepad.

And to write the info I gave you earlier to a text file just replace the MsgBox with FileWriteLine() and write it to a text file.

#include <date.au3>
$oFile = @DesktopDir & "\Test.txt"
FileWriteLine($oFile, "Todays date/Time: " & _Now())

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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