I'm trying to get the following result:
"subject:zera after:{last year, but today's month and day of month}, before:{last year,one month after today's month, and today's date of of month} and paste it to clipboard
This is the code I used:
Code: Select all
!d::
FormatTime, today, %m%d, UseUTC
FormatTime, lastYear, %Y%-1, UseUTC
FormatTime, lastMonth, %m%-1, UseUTC
todayYear := SubStr(today, 3, 2)
todayMonth := SubStr(today, 1, 2)
message := "subject:zera after:" lastYear todayMonth todayYear ", before:" lastYear lastMonth todayYear
Clipboard := message
MsgBox, % "The following message has been copied to the clipboard:`n`n" message
return
subject:zera after:U50eUTCU50e, before:U50eUTCU50eUTC0e
can someone help me to know what I'm doing wrong
Thank you very very much
[Mod actions: Moved to v1 section since this is v1 code and the main section is for v2. Added [code][/code] tags. Please use them yourself when posting code.]