# Automating the Calculator

Let's consider the practical work with recording using the calculator as an example.

Launch the standard Calculator application.

![](https://sherparpa.ru/wp-content/uploads/2023/11/image117-587w342h-4.png)

![](https://sherparpa.ru/wp-content/uploads/2023/11/image104-416w350h-4.png)

Task: have the robot click the buttons on the Calculator.

Click the "Record Click Sequence" button. A hint appears at the top of the screen regarding the use of additional keys:

![](https://sherparpa.ru/wp-content/uploads/2023/11/image103-623w69h-4.png)

The appearance of the recording panel has changed, leaving only the Cancel button.

![](https://sherparpa.ru/wp-content/uploads/2023/11/image108-623w365h-4.png)

As the mouse cursor moves across the screen, the element under the cursor is highlighted with a red border.

![](https://sherparpa.ru/wp-content/uploads/2023/11/image105-424w356h-4.png)

This happens both in the Calculator, in the browser, on the taskbar, etc.

Click on several buttons of the Calculator with the left mouse button. A hint appears at the top of the screen indicating that we can finish recording at any time by pressing the Escape key.

![](https://sherparpa.ru/wp-content/uploads/2023/11/image102-493w470h-4.png)

Note that you clicked with the mouse now. That is, you can press CTRL and record a mouse click on the specified element without actually performing the click. This can be useful sometimes – if you just want to record a click but not perform any operations and move to another screen. If it's not critical, record the click simply by pressing the left mouse button.

Now the Save and Close button on the recording panel in the upper corner has the number 8. This means that we have recorded 8 actions.

![](https://sherparpa.ru/wp-content/uploads/2023/11/image145-281w104h-4.png)

Now you can press Escape to exit recording mode, and then click the Save and Close button. Blocks with recorded actions have appeared in the designer:

![](https://sherparpa.ru/wp-content/uploads/2023/11/image146-574w612h-4.png)

You can hover the cursor over the camera icon and view the screenshot, which indicates what action was recorded and is performed by this block. The point on the screenshot where the click was made is marked with a cross.

![](https://sherparpa.ru/wp-content/uploads/2023/11/image131-438w391h-4.png)

Save the diagram and run it.

The Calculator is loading.

![](https://sherparpa.ru/wp-content/uploads/2023/11/image129-344w290h-4.png)

The recorded clicks on the keys are being executed.

![](https://sherparpa.ru/wp-content/uploads/2023/11/image137-344w287h-4.png)

The robot has completed this scenario.
