admin

To do background operations, please make sure you have updated Automatic Mouse and Keyboard to the latest version 6.0.5.8.

This article will show you how to do background operations with a sample step by step. To run the sample, you need to install RobotSoft Calculator, and you can download it from https://www.robot-soft.com/Calculator.exe.

Step 1
Launch RobotSoft Calculator.
Note: Do not minimize the window. Background operations support inactive windows, but do not support minimized windows.

Step 2
Launch Automatic Mouse and Keyboard, and use the “Find Window” command.
Find Window

Step 3
Click the function name FindWindowEx, and the click the popup menu “Pick Window“.
Pick Window

Find the window of RobotSoft Calculator, select it and then click “OK“.
Pick Window

FindowWindowEx

Step 4
Click the “ReturnValue“, then enter a variable name for the window handle. And then click “OK” to confirm the Call Function command.
Return Value

Step 5
Click the toolbox, then find “More Functions“, and then find “Background Operations“, and then click “Sub Window From Point“.
Sub Window From Point

Step 6
Click the function name SubWindowFromPoint, and then click the popup menu “Set Point“.
Set Point

Then move mouse on to the Edit control of RobotSoft Calculator, and then press Ctrl to set the point. And then click “OK“.
Set Point in Window

Set Point in Window

SubWindowFromPoint

Step 7
Set the Window parameter and ReturnValue of SubWindowFromPoint. And then click “OK” to confirm the Call Function command.
SubWindowFromPoint

Step 8
Find the “Background Operations” again, and then click “Send String“.
Send String

Set the parameters of SendString, and then click “OK” to confirm the Call Function command.
Send String

Step 9
Click the mouse button, and then click “Background Click“.
Background Click

Step 10
Click the function name Bkgnd_MouseClick, and then click the popup menu “Set Point“.
Set Point

Then move mouse on to the “Calculate” button of RobotSoft Calculator, and then press Ctrl.
Set Point

Then click “OK” to confirm.
Set Point

Bkgnd_MouseClick

Step 11
Set the rest arguments of Bkgnd_MouseClick. And then click “OK” to confirm the Call Function command.
Background Mouse Click

Now you can run the script.
Background Operations

And you will see the execution result:
Execution Result

While the script is running, you can still use your mouse and keyboard. Background operations are very useful features in Automatic Mouse and Keyboard. Automatic Mouse and Keyboard has the best tools to help you to build a script which can run in the background.

And you can download the sample from Background.amk.

How to increase clipboard value

Programming Comments Off on How to increase clipboard value
Feb 262019

This is a simple example to show you how to increase the value in clipboard.
Increase Clipboard Value

And you can download the sample from IncreaseClipboardValue.amk.

How to use the Switch Case command

Programming Comments Off on How to use the Switch Case command
Jan 302019

In Automatic Mouse and Keyboard, you can find the “Switch Expression” and “Case Value” command:
Switch Case

Switch Case command can switch integer:
Switch Integer

Switch Case command can also switch string:
Switch String

And you can download the sample from SwitchInteger.amk and SwitchString.amk.

How to resize an image

Programming Comments Off on How to resize an image
Oct 312018

In Automatic Mouse and Keyboard, you can use the function ScaleImage to resize an image.
Scale Image

And you can download the sample from ScaleImage.zip

Use SendString to type text

Background Operation Comments Off on Use SendString to type text
Sep 062018

The function SendString allows you to type text in a Edit without keyboard simulation.
SendString

And you can download the sample from SendString.amk

How to use the Goto Label command

Programming Comments Off on How to use the Goto Label command
Jul 242018

To use the Goto Label command, you need to use the Insert Label command to insert a label first.
Insert Label

Then you can use the Goto Label command to goto the label.
Goto Label

You can download the sample from Goto.amk

How to find files

Uncategorized Comments Off on How to find files
Jun 202018

In Automatic Mouse and Keyboard, you can use CreateFileFinder and FindNexFile to find files.
Find Files

You can download the sample from find_file.amk

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.

© 2019 RobotSoft Suffusion theme by Sayontan Sinha