Jump to content
Sign in to follow this  
putnum

How to insert the current time

Recommended Posts

putnum

All I need to know is how to create a script to insert the current time via a hotkey F12. Time format should be in this format 6:45:00 AM.

Many Thanks!

Adam

Share this post


Link to post
Share on other sites
putnum

I tried the below code and it did not compile. I got it from auto hot script.

$F12::
SetTitleMatchMode, 2
IfWinActive, Notepad++
{
FormatTime, zz,, hh:mm:ss tt ; This is one type of the time format
SendInput, %xx%{Enter}
SendInput, %zz%
}
Return

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.