Jump to content

Send() using Date


Recommended Posts

#include <Date.au3>

; Show current date/time in the pc's format

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

$sNewDate = _DateAdd( 'd',1, _NowCalcDate())

MsgBox( 4096, "", "Today + 1 days:" & $sNewDate )

Hi, I have a problem with this. I know the result of this script comes out in a MsgBox that writes "Today + 1 days:3/3/2007. But I want the date to come out in the notepad. I tried using Send command like this :

#include <Date.au3>

; Show current date/time in the pc's format

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

$sNewDate = _DateAdd( 'd',1, _NowCalcDate())

Send(& $sNewDate )

But it seems like the date won't appear in the notepad. Can u teach me the correct way to solve this program?..I would realli appreciate it a lot..thanks..I want the date to appear in the notepad, not the Msgbox. I dun know how to do it..please help!!.. thanks :whistle:

Link to comment
Share on other sites

#include <Date.au3>

; Show current date/time in the pc's format

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

$sNewDate = _DateAdd( 'd',1, _NowCalcDate())

MsgBox( 4096, "", "Today + 1 days:" & $sNewDate )

Hi, I have a problem with this. I know the result of this script comes out in a MsgBox that writes "Today + 1 days:3/3/2007. But I want the date to come out in the notepad. I tried using Send command like this :

#include <Date.au3>

; Show current date/time in the pc's format

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

$sNewDate = _DateAdd( 'd',1, _NowCalcDate())

Send(& $sNewDate )

But it seems like the date won't appear in the notepad. Can u teach me the correct way to solve this program?..I would realli appreciate it a lot..thanks..I want the date to appear in the notepad, not the Msgbox. I dun know how to do it..please help!!.. thanks :whistle:

try either Send(""& $var &"")

or more likely just Send($var)

If the variable is defined properly, then it will output properly.

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