How to generate a random number with Automatic Mouse and Keyboard

Mouse Keyboard Comments Off on How to generate a random number with Automatic Mouse and Keyboard
Oct 292012

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.

Download a file with the new function UrlDownloadToFile

Uncategorized Comments Off on Download a file with the new function UrlDownloadToFile
Apr 282018

With the latest version of Automatic Mouse and Keyboard, you can download a file easily. Just call the function UrlDownloadToFile.
UrlDownloadToFile

You just need to set the URL and the Destination File or Destination Directory.
UrlDownloadToFile Test

Generate a random password with the function RandomString

Uncategorized Comments Off on Generate a random password with the function RandomString
Mar 142018

With the function RandomString, you can generate a random string. So you can use it to generate a random password.
RandomString

If the argument Charset is Empty, then RandomString will use the default charset which contains all letters and all digits.
Random Password

You can download the sample from RandomPassword.amk.

Use function WaitClipboardText to wait until the clipboard text changed

Uncategorized Comments Off on Use function WaitClipboardText to wait until the clipboard text changed
Feb 142018

Now Automatic Mouse and Keyboard has a new function WaitClipboardText. You can use it to wait until the clipboard text changed.

WaitClipboardText
If the argument Timeout is 0, then WaitClipboardText will wait indefinitely. When the user copied some text, then the clipboard text will change and WaitClipboardText will return the text which has been copied.

Wait Clipboard Text
It is just easy to use.

Loop until the picture disappears

Uncategorized Comments Off on Loop until the picture disappears
Sep 202017

This post tells you how to create a infinite loop until the specified picture is not visible on the screen.

Click the loop button to insert a For Loop.
For Loop

Check the option “Infinite Loop“, then click “OK”.
Infinite Loop

Click the “if” button and click “If Image Found” to insert a Search Picture command with If Else statement into the For Loop.
If Image Found

Click the loop button again and insert a Exit Loop command between Else and End If.
Exit Loop

Loop until the picture disappears

Enter multiple values with InputPara

Uncategorized Comments Off on Enter multiple values with InputPara
Jul 112017

In Automatic Mouse and Keyboard, you can use the function InputBox to enter a single value. But if you want to enter multiple values, you can call the function InputPara. Each value can have a name, you can get each value with its name.
InputPara

You can download the sample from InputPara.amk.

Debug run the script in Automatic Mouse and Keyboard

Uncategorized Comments Off on Debug run the script in Automatic Mouse and Keyboard
Jun 142017

Now you can debug run the script in Automatic Mouse and Keyboard. You need to make sure you have already upgraded Automatic Mouse and Keyboard to the latest version 5.4.2.6.

Click the Menu “Tools“, then click “Debug Run“.
Debug Run

Set the Debug Options, then click “OK“.
Debug Options

In the debug window, you can debug run the script step by step with Step Into and Step Over. The default Step Into hotkey is F7, and the default Step Over hotkey is F8. Press the Step Into/Step Over hotkey when the debugger paused the script, you can run the script step by step. Move mouse over a variable, you can see the value of the variable.
View Variable Value

With this step by step run feature, you can easily find the bug of your script and then fix it.

Get the rest days of this month

Uncategorized Comments Off on Get the rest days of this month
Mar 282017

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.

Wait for a specified time of today

Uncategorized Comments Off on Wait for a specified time of today
Mar 112017

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 do 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

How to get the day of the week

Uncategorized Comments Off on How to get the day of the week
Dec 222016

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.

RobotSoft Calculator now supports Greater Equal and Less Equal command

Mathematics Comments Off on RobotSoft Calculator now supports Greater Equal and Less Equal command
Nov 192016

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

© 2018 RobotSoft Suffusion theme by Sayontan Sinha