最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

datetime - Make AutoHotKey produce uppercase text in timestamp - Stack Overflow

programmeradmin1浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论