问题
FormatTime, CurrentMinute , , m
assigns the current minute to variable %CurrentMinute%
, and its value is a string, not a numeric. I wanna do some calculations on the value of %CurrentMinute%
, so how could I convert it to numeric?
Thanks for any help in advance!
回答1:
AutoHotkey automatically converts numbers and strings as needed.
FormatTime, CurrentMinute,, m
NextMinute := CurrentMinute + 1
来源:https://stackoverflow.com/questions/13106275/how-to-convert-a-string-to-a-numeric-in-autohotkey