gpt4 book ai didi

timestamp - 在 AutoHotkey 中获取毫秒数

转载 作者:行者123 更新时间:2023-12-02 03:19:13 25 4
gpt4 key购买 nike

如何向下面的 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

最佳答案

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

改变这一行:

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

FormatTime, CurrentDateTime,, hh:mm:ss:%A_msec% tt

关于timestamp - 在 AutoHotkey 中获取毫秒数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55271331/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com