MaCgyver Posted February 27, 2006 Share Posted February 27, 2006 (edited) I tried several ways. Func _Now() Return (_DateTimeFormat(@YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC, 0)) EndFunc ;==> $timedate = _Now Send($timedate) ______________________________________________ this is another way Send('@YEAR' & '@MON' & '@MDAY') _______________________________________________ Send(@YEAR & @MON & @MDAY) I found the error. I should have removed the Func _Now() when I tried the Send(@YEAR & @MON & @MDAY) Edited February 27, 2006 by MaCgyver Link to comment Share on other sites More sharing options...
BigDod Posted February 27, 2006 Share Posted February 27, 2006 I tried several ways. Func _Now() Return (_DateTimeFormat(@YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC, 0)) EndFunc ;==> $timedate = _Now Send($timedate) ______________________________________________ this is another way Send('@YEAR' & '@MON' & '@MDAY') _______________________________________________ Send(@YEAR & @MON & @MDAY) I found the error. I should have removed the Func _Now() when I tried the Send(@YEAR & @MON & @MDAY)Run("Notepad.exe", "", @SW_MAXIMIZE) WinWaitActive("Untitled") ControlSend("Untitled", "", "Edit1", @YEAR & ":" & @MON & ":" & @MDAY) Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
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