Sometimes you need to automate a click action based on image information. For this reason, Ranorex Recorder provides an optional way to capture image related mouse actions. To activate image based recording, simply check the 'Image-Based' checkbox in the Recorder's toolbar during a recording session.

Now, move the mouse pointer over a certain GUI element. Ranorex highlights the last accessible UI element, and also highlights a recognized image within the GUI element.

To turn off image-based recording, uncheck the checkbox or press the shortcut key 'I'.
Note: Hot key functionality has to be activated by first using the master hot key 'SCROLL'.
Read more about hot key use during Ranorex recording.
After stopping the recording session the actions table contains an image based mouse click action which is indicated by the 'Image' keyword. In addition the related repository item stores a snapshot at the time of recording.
Generally, the repository item saves an image to specify where to search for the image region which is specified by the image based mouse action in the recorder's actions table.
To alter the settings of an image-based automation action, open the property group 'Image-Based Location' within property grid.
| Image-Based Location Settings |
||
Advanced Options |
Use the property group to set advanced image search options like 'Clipping' or 'Best Match' If 'Best Match' is set to true, the result position with the highest similarity is used for validation. If is set to false, the first available result position will be used of the validation. The first one is more accurate and the second one is faster. |
|
Preprocessing |
Defines preprocessing steps that can be performed on an image before search (e.g. GrayScale or DownSize) | |
Screenshot Name |
Specifies the name of the screenshot where to search for. | |
| Selection Rectangle | Defines the image selection region and what to search for | |
| Similarity | Specifies the minimum similarity that the image region to search for needs to have in common with the image in order to be considered a match | |
To set up the default values for image based recording open the 'Settings' dialog and the 'Imaging' tab.
The editor provides a more detailed view of the captured image information. In addition it offers some useful features to change the image rectangle to be searched for.
Toolbar Shortcuts | ||
| Image Based | Specifies whether the click is based on image information or not | |
| Select Image Find Region | Specifies the region to search for within the image | |
| Select Click Location | Defines the click position related to the searched region | |
| Autoselect Image Find Region | Helps to specify the search region within the image | |
Zoom Out | Zooms out | |
| Zoom 100% | Switches to 1:1 view | |
| Zoom In | Zooms in | |
| Capture New Screenshot | Captures a new screenshot from the related repository item | |

Online User Guide
download as: PDF (20.3MB)
Ranorex Tutorial
(PDF file, 13.5MB)