y::send,%A_YYYY%
dd::send,%A_YYYY%-%A_MM%-%A_DD%
now,send y,put out 2019.
but I just need 19, need to get rid of the first two letters 20.
how can I do this?
【help】set time"%A_YYYY%" without first two letters"YY"?
Re: 【help】set time"%A_YYYY%" without first two letters"YY"?
Here are 2 ideas. I'd use the FormatTime approach, as it's more reliable. E.g. if you concatenate variables, and if it's midnight when you get the time, you could end up with the correct day, but the previous month.
Code: Select all
:*:dd::
SendInput, % SubStr(A_YYYY "-" A_MM "-" A_DD, 3)
return
:*:d2::
FormatTime, vDate,, yy-MM-dd
SendInput, % vDate
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: 【help】set time"%A_YYYY%" without first two letters"YY"?
... or just for y:
Code: Select all
y::Send, % SubStr(A_YYYY, 3)
Re: 【help】set time"%A_YYYY%" without first two letters"YY"?
3Q very much!:D