admin管理员组

文章数量:1356385

I am using the following AutoHotKey script on the CTRL-ALT-D keyboard shortcut.

^!d:: 

  FormatTime, CurrentDateTime,, ddd dd MMM yyyy @HH:mm 

  SendInput, %CurrentDateTime% 

return

This one produces something like this: Sat 29 Mar 2025 @20:46. I would like to have all text produced by this command in uppercase, like this:

SAT 29 MAR 2025 @20:46

Does anyone know how to do that? Many thanks!!

I am using the following AutoHotKey script on the CTRL-ALT-D keyboard shortcut.

^!d:: 

  FormatTime, CurrentDateTime,, ddd dd MMM yyyy @HH:mm 

  SendInput, %CurrentDateTime% 

return

This one produces something like this: Sat 29 Mar 2025 @20:46. I would like to have all text produced by this command in uppercase, like this:

SAT 29 MAR 2025 @20:46

Does anyone know how to do that? Many thanks!!

Share Improve this question edited Mar 30 at 2:39 Relax 10.6k2 gold badges17 silver badges34 bronze badges asked Mar 30 at 0:52 COLIN GHERGHECOLIN GHERGHE 1 1
  • See StringLower / StringUpper. – Relax Commented Mar 30 at 2:40
Add a comment  | 

1 Answer 1

Reset to default 0

As Relax stated...

^!d::
  FormatTime, CurrentDateTime,, ddd dd MMM yyyy @HH:mm
  StringUpper, CurrentDateTime, CurrentDateTime    ; Convert to UPPERCASE.
  SendInput, %CurrentDateTime%
return

本文标签: datetimeMake AutoHotKey produce uppercase text in timestampStack Overflow