RPA Desktop Macro Runs Very Slow

Thanks for the screencast, its very helpful. As @trexem said, the speed is normal, so you did nothing wrong :wink:

Pattern matching runs in this (slow) speed because you are on a HiDpi screen (I know this, because I see _dpi_192 in your macro)

How to speed up a computer vision macro:

  • If you can, do the automation on a regular 96dpi screen and/or use a smaller screen size. The larger the screen, the longer the image search takes.

  • Instead of using XClick with image search to click on an item, automate with keyboard shortcuts (XType) if possible. Of course, this only works if the app supports keyboard shortcuts.

  • Limit the search area: You can use the visionLimitSearchArea and visionLimitSearchAreaRelative commands for this. In your example I see that you automate a desktop application. In this case you can limit the image search area to the area of this application. This makes the automation faster and more robust. If you look at the “DemoXDesktopAutomation” macro (Subroutine Sub_XDesktopAutomation_Area) you see that we use this ourselves for the demo.

PS: Last but not least we plan to improve the image search algorithms further and increase the performance. It is on our todo list. The new xmodules V2021-1 already improve the image search speed by ~10-20%, and much more is planned.

Update March 2021: The new XModules version V2021-3 is available. It cuts down image search time by up to 50%. More speed improvements are planned.

1 Like