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.

Automatic Mouse and Keyboard comes with many useful functions. You can generate a random number with the function RandomNumber.

Step 1. Click the toolbox, and click “Functions“.
Toolbox

Step 2. Select the function “RandomNumber“.
RandomNumber

┬áStep 3. Set “MinNum“, “MaxNum” and “ReturnValue“. Then click “OK“.
Random Number

There are many other useful functions in Automatic Mouse and Keyboard. Click here to check it out.

© 2017 RobotSoft Suffusion theme by Sayontan Sinha