Jump to content

HOW DO I:Send the time/date into notepad via send


MaCgyver
 Share

Recommended Posts

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 by MaCgyver
Link to comment
Share on other sites

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

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