# Click on Image of Element

This block allows you to save an image of a control element (application window, panel, or another element within the window) during the development of a Robot and record the click coordinates relative to this image. Then, during the execution of the script, the Robot will find a similar area on the screen (even if it is located in a different part of the screen), after which it will click on the point with the previously saved coordinates relative to the top left corner of the image.

<table data-header-hidden><thead><tr><th width="294.5333251953125" valign="top"></th><th width="323.566650390625" valign="top"></th></tr></thead><tbody><tr><td valign="top">Selector</td><td valign="top">[Selector] The identifier of the user interface element within which the specified image must be found.</td></tr><tr><td valign="top">Process ID</td><td valign="top"><p>[Link] A variable that stores the Process ID. Indicates which application to work with.</p><p>If the specified application is minimized or its window is covered by other windows, it will be brought to the foreground. When working with browsers, the Process ID additionally specifies the particular browser tab that the block should work with.</p><p>If the property is left empty, or if the Process ID variable was not previously assigned at the time of launching the application or opening the browser, the application and browser tab will be determined from the content of the corresponding selector line.</p><p>The Process ID can be obtained, for example, using the "Launch Application" or "Get Process" blocks.</p></td></tr><tr><td valign="top">Action</td><td valign="top"><p>Select an action:</p><ul><li>left click,</li><li>double click,</li><li>right click,</li><li>hover.</li></ul></td></tr><tr><td valign="top">Image</td><td valign="top">The identifier of the desired image. The image itself is saved in the project's Images folder and is included in the Robot file when published.</td></tr><tr><td valign="top">Click Coordinate X</td><td valign="top">[Number] The horizontal offset of the click coordinate relative to the top left corner of the found image on the element.</td></tr><tr><td valign="top">Click Coordinate Y</td><td valign="top">[Number] The vertical offset of the click coordinate relative to the top left corner of the found image on the element.</td></tr><tr><td valign="top">Image Number</td><td valign="top">[Number] The ordinal number of the found image. Numbering starts from zero.</td></tr><tr><td valign="top">Comparison Type</td><td valign="top">Select the type of image comparison.</td></tr><tr><td valign="top">Match Threshold</td><td valign="top">[Number] The match threshold. The value is set as a percentage from 0 to 100.</td></tr><tr><td valign="top">Simulate Movement</td><td valign="top">When enabled, the movement of the mouse cursor from the current position to the calculated point will be simulated.</td></tr><tr><td valign="top">Wait Time</td><td valign="top">[Number] The maximum wait time for the image to appear in seconds.</td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that the blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/izobrazheniya/klik-po-izobrazheniyu-s-elementa-clickimagecontrol.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
