Time date stamp

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
doncole
Posts: 37
Joined: 04 Jun 2017, 17:39

Time date stamp

04 Jun 2017, 18:54

What I would like to do is be able to press a hotkey (say F2+Ctl) and have it print out the date and time. And see the different forms.
As of now I can't get it print anything. How do I setup format type and all the way thru. I've tried several ways and can't get anything to print. Can anyone help please.

Don Cole :)










:D
User avatar
boiler
Posts: 17328
Joined: 21 Dec 2014, 02:44

Re: Time date stamp

04 Jun 2017, 20:50

What specifically do you mean by "print"? Do you want to send the date and time to a particular window? Or do you want to open a window or dialog box to show that information? Can you show your attempts?
doncole
Posts: 37
Joined: 04 Jun 2017, 17:39

Re: Time date stamp

06 Jun 2017, 01:03

Thank you boiler for your rely,

Let's say I have Notepad open and I want to put the date and time in there with one keystroke.

In this form: 6/5/2017 10:57 PM.

Don Cole
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Time date stamp

06 Jun 2017, 04:04

For notepad that's an already existing function. Simply press F5
User avatar
boiler
Posts: 17328
Joined: 21 Dec 2014, 02:44

Re: Time date stamp

06 Jun 2017, 06:02

Notepad's function doesn't put it in the format he wants. And he's saying Notepad was just an example.

This will insert the date and time in the desired format into whatever window is active (make sure your cursor/caret is where you want to insert it) when you press the hotkey, currently set for control-Insert.

Code: Select all

^Ins::
FormatTime, DateTimeString,, M/d/yyyy h:mm tt
Send, %DateTimeString%
return
doncole
Posts: 37
Joined: 04 Jun 2017, 17:39

Re: Time date stamp

08 Jun 2017, 23:42

Thank you boiler, :D
That's exactly what I wanted. I need it for Notepad and several other editors and applications.

Don Cole

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], marypoppins_1, Spawnova and 116 guests