cedrIck Posted March 2, 2007 Posted March 2, 2007 #include <Date.au3>; Show current date/time in the pc's formatRun("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 formatRun("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
verto Posted March 2, 2007 Posted March 2, 2007 #include <Date.au3>; Show current date/time in the pc's formatRun("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 formatRun("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 try either Send(""& $var &"")or more likely just Send($var)If the variable is defined properly, then it will output properly.
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