You can use the function XLS_GetCell to read a cell of an Excel file.
You can download the sample from ReadExcel.zip.
You can use the function XLS_GetCell to read a cell of an Excel file.
You can download the sample from ReadExcel.zip.
In Automatic Mouse and Keyboard you can load and save JSON data easily. Here is a sample to show you how to load and save JSON data.
You can download the sample from JSON.zip.
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.
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.
Step 8
Find the “Background Operations” again, and then click “Send String“.
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.
And you can download the sample from Background.amk.
This is a simple example to show you how to increase the value in clipboard.
And you can download the sample from IncreaseClipboardValue.amk.
In Automatic Mouse and Keyboard, you can find the “Switch Expression” and “Case Value” command:
Switch Case command can switch integer:
Switch Case command can also switch string:
And you can download the sample from SwitchInteger.amk and SwitchString.amk.
In Automatic Mouse and Keyboard, you can use the function ScaleImage to resize an image.
And you can download the sample from ScaleImage.zip
The function SendString allows you to type text in a Edit without keyboard simulation.
And you can download the sample from SendString.amk
To use the Goto Label command, you need to use the Insert Label command to insert a label first.
Then you can use the Goto Label command to goto the label.
You can download the sample from Goto.amk
In Automatic Mouse and Keyboard, you can use CreateFileFinder and FindNexFile to find files.
You can download the sample from find_file.amk