【问题标题】:How to convert a string to a numeric in autohotkey?如何在自动热键中将字符串转换为数字?
【发布时间】:2012-10-17 20:40:10
【问题描述】:

FormatTime, CurrentMinute , , m 将当前分钟分配给变量%CurrentMinute%,其值是字符串,而不是数字。我想对%CurrentMinute%的值做一些计算,那我怎么把它转换成数字呢?

提前感谢您的帮助!

【问题讨论】:

    标签: string format converter numeric autohotkey


    【解决方案1】:

    AutoHotkey 会根据需要自动转换数字和字符串。

    FormatTime, CurrentMinute,, m
    NextMinute := CurrentMinute + 1
    

    【讨论】:

    • 谢谢CurrentMinute:= CurrentMinute + 0 解决了问题!
    猜你喜欢
    • 1970-01-01
    • 2019-10-15
    • 2014-02-18
    • 2022-07-11
    • 1970-01-01
    • 2020-10-17
    • 2013-10-05
    • 1970-01-01
    相关资源
    最近更新 更多