I'd also really like to be able to have this update everything I run the actual code this is supposed to be paired with so I don't have to relaunch the code every Tuesday and Friday, but I'm not super certain where to start with that.
Here's the code. It's not clean, but it 90% functions the way I need it to at least. Bench is only being printed for debugging purposes:
Code: Select all
override=1
bench=0
DOAI=07302021
if override=1
bench = 7
else if (A_WDay=3 || A_WDay=6)
bench = 0
else if (A_WDay=4 || A_WDay=7)
bench = 1
else if (A_WDay=5 || A_WDay=1)
bench = 2
else if (A_WDay=2)
bench = 3
if override = 0
DOAI := A_Now
DOAI += -bench, D
FormatTime, DOAI, %DOAI%, MMddyyyy
Return
^!`::
Send, %bench%
Send, {enter}
Send, %DOAI%
return