基本上我需要这样的东西:
x::
if (today < 2018/02/16)
send y
else
send z
return
有没有办法实现这个目标?
答案 0 :(得分:3)
date = 2018/01/16
date := StrReplace(date, "/") ; remove slashes
today = %A_Year%%A_MM%%A_DD%
MsgBox, date = %date%`n`ntoday = %today%
$x::
if (today < date)
Send y
else
Send z
return
答案 1 :(得分:1)
x::
date_diff := A_Now
date_diff -= 20180216, Seconds
if (date_Diff < 0)
msgbox, y
else
msgbox, z
return