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.

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.

Now Automatic Mouse and Keyboard has a new function WaitTime. It can wait for a specified time of today. If it missed the time, it will return False.
WaitTime

You can use it to some every day work automatically.
Every Day Work

You can download the sample from EveryDayWork.amk.

And you can compile the script to EXE and put the EXE into the Windows Startup Folder to do the every day work automatically. If you don’t know how to compile a script to EXE, please see http://blog.robot-soft.com/create-a-calculator
Startup Task

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.

The Solve Equations feature of RobotSoft Calculator now supports Greater Equal and Less Equal command. Different conditions may get different results.

Assume x >= 0:
Greater Equal

Assume x <= 0:
Less Equal

If you have downloaded and registered RobotSoft Calculator, then you can invoke it in Automatic Mouse and Keyboard.
Invoke Calculator

You can download RobotSoft Calculator from http://www.robot-soft.com/Calculator.exe
And download the sample from RobotSoft.Calculator.amk.

RobotSoft Calculator is an advanced calculator which can solve nonlinear equations easily.
Solve Equations

You can learn more features about RobotSoft Calculator from http://www.robot-soft.com/help-calculator.html

In Automatic Mouse and Keyboard, you can call the function RandomString to generate a random string. You can also call the function RandomNumber to select a random string from a string list.
Random String

You can download the sample from rand_str.amk.

Automatic Mouse and Keyboard now has a very useful function StringFormat. It can return a formatted string. You can get a specified format string with StringFormat easily.
String Format

You can download a sample from str_fmt.amk.

With the Scripting.FileSystemObject object, you can get a drive serial number. It is useful when you want your script can only run in a specified computer.
Get Drive Serial Number

And you can get the sample from GetDriveSerialNumber.amk.

In Automatic Mouse and Keyboard, a script can play another script. Play another script just like invoke a function, you can pass arguments and receive script return value.
Play Another Script

You can learn how to pass and receive arguments from PlayScriptSample1.zip.
And you can learn how to modify values in another script from PlayScriptSample2.zip.

© 2017 RobotSoft Suffusion theme by Sayontan Sinha