The following script can get the rest days of this month and return it. You can consider it as a function and use the Play Another Script command to call it.
Rest Days

To learn how to play another script, please see http://blog.robot-soft.com/play-another-script-in-automatic-mouse-and-keyboard

And you can download the sample from RestDaysOfMonth.zip.

To get the day of the week in Automatic Mouse and Keyboard, you can call the function DayOfWeek. You can also call function Tomorrow and Yesterday to get tomorrow and yesterday.
Day Of Week

You can download a sample from DayOfWeek.amk.

© 2017 RobotSoft Suffusion theme by Sayontan Sinha