I have a piece of code that builds an email for me for work with cookie-cutter pleasantries at the beginning and end. I'm hoping to make it a little less robotic. This is the part giving me issues right now.
Code: Select all
#persistent
FormatTime, datestring,, MM/dd/yyyy
StringSplit, d, TodayDate, /
date := d3 d1 d2
FormatTime, day_of_Week, %date%, dddd
Pleasantry = day!
if (day_of_Week = Tuesday)
Pleasantry = weekend!
return
#^!z::MsgBox %day_of_Week% %Pleasantry%
In the end, I want one that works just like this:
Code: Select all
#persistent
FormatTime, datestring,, MM/dd/yyyy
StringSplit, d, TodayDate, /
date := d3 d1 d2
FormatTime, day_of_Week, %date%, dddd
Pleasantry = day!
if (day_of_Week = Friday)
Pleasantry = weekend!
return
if (day_of_Week = Saturday)
Pleasantry = weekend!
return
#^!z::MsgBox %day_of_Week% %Pleasantry%