在 AutoHotkey 中获取毫秒

use*_*310 3 timestamp autohotkey milliseconds

如何向下面的 AHK 脚本添加毫秒?我一直在研究,但找不到方法 - 或者更好的是,不理解 SO 中发布的一些解决方案......我也对任何类型的编程了解不够。你能帮我吗?

我怎样才能得到毫秒?

runwait, net time /setsntp:"us.pool.ntp.org",,hide
run, w32tm /resync,,hide

^Space::

FormatTime, CurrentDateTime,, hh:mm:ss tt{Enter}{Down}

sendInput %CurrentDateTime%

return
Run Code Online (Sandbox Code Playgroud)

Yan*_*ane 5

要添加毫秒,您可以使用A_Msec内置变量。

更改这一行:

FormatTime, CurrentDateTime,, hh:mm:ss tt{Enter}{Down}
Run Code Online (Sandbox Code Playgroud)

FormatTime, CurrentDateTime,, hh:mm:ss:%A_msec% tt
Run Code Online (Sandbox Code Playgroud)