How to define area of the screen with visionLimitSearchArea

I want to search image in a smaller area in order to speed up the process.

When i’m executing the formula

Executing: | visionLimitSearchArea | “area=x1,y1,x2,y2” | |

I get

  • [error]

Target of visionLimitSearchArea could only be either ‘viewport’, ‘full’ or ‘element:…’

You need to use ${…} for the variables. This will work:

  "Command": "visionLimitSearchArea",
  "Target": "area=${x1},${y1},${x2},${y2}",
  "Value": "",
  "Description": ""

Code taken from the “Sub_XDesktopAutomation_Area” demo macro.