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.

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

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

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

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

Step 6
Click the function name SubWindowFromPoint, and then click the popup menu “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“.

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

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

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

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

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

Then click “OK” to confirm.

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

Now you can run the script.

And you will see the 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.