I was searching about how to limit visual search area and once that use XMove, XClick, in order to get a more precise behavior. I found this thread where they talk about that and mention these 2 demo macros
DemoXDesktopAutomation
RPA select box automation
But I cannot find any of them in the demo folder. I’ve installed ui vision un Edge, Chrome and Firefox and I only see these demo macros and I don’t know where to download those macros.
There are three commands to limit the visual search area. One command uses absolute values:
visionLimitSearchArea | area=x1,y1,x2,y2) - these are x/y coordinates that create a box. This box is the new search area. You can reuse e. g. the values from the !IMAGEX/!IMAGEY or !OCRX/!OCRY internal variables. These are filled by previous visual commands.
And then we have two relative commands. The relative commands differ in the method that is used to define the new search area relative to an anchor image or anchor text:
visionLimitSearchAreaBYTEXTRelative ← this command uses text (OCR)to define the new search area. Example: visionLimitSearchAreaBYTEXTRelative | abc#R100,-50H80W150 - here the box with height 80 and width 150 at 100/-50 relative to the word “abc” is the new search area.
Hi admin, thanks for answer. Since the macro would be used in more than one machine, which one would you suggest would be better to limit the search area? I’ve tried “visionLimitSearchAreaRelative” and I defined the pink box and after that command I use a XMove command towards an image inside the that pink area and didn´t do anything. Not sure if I’m doing something wrong but I wasn´t able to find an example with “visionLimitSearchAreaRelative” and as I mention in my first post, is my Demo folder there are missing a lot demo macros including “DemoXDesktopAutomation”, then I cannot study that examples and I don´t know why those demo macros are missing and where to download them.