I think BotCity is an excellent tool. Very practical and fast to create macros. I created a macro to do some automations on the screen on my phone that is being mirrored. My question is why the bot doesn’t work (doesn’t recognize the images) on another computer even though the monitor has the same resolution (1366 x 768)?
Hi @josewilian,
This is a good point. Generally we recommend that screen prints be done on the machine where the bot will run, even if you use two identical machines, it may be that some specific resolution or optimization configuration affects the functioning of the bot, for example.
In some cases, a bot developed on a machine may even work on another. But in most cases, the ideal is always to use the machine that will be used by the robot as a reference for the prints.
I get it. So don’t have a technique for the same bot to work on different machines?
In some cases this is possible, in web automations where instead of searching for elements by computer vision you use the HTML of the page, or on systems where you can use keyboard shortcuts to interact with elements, for example.
In the case you mentioned above and in automations where the only way is to use computer vision, this process can already be a little difficult. Some types of resolution and scale optimizations, for example, can make elements not look exactly the same from one machine to another.
Hi Jõao, following the line above, what are the configuration settings such as scale, resolution that must be configured so that there is compatibility between different machines for recognizing elements by computer vision?
I created a bot for an android game that I can’t extract the xpath, so I can only use computer vision
Hi @dimitriusss,
In general, there is no rule; you could configure the resolution and scale that were necessary for the process. The main problem in this case is that even though the machines are identical in resolution, the rendering and optimization behavior can already affect and cause the elements not to be found.
Sometimes, using a slightly lower value in the matching
parameter may help. However, it is recommended always to use the machine used in the execution as a reference when capturing elements.
Unfortunately, the computer vision algorithm is still sensitive to this issue of changing the environment.