"A picture is worth a thousand words"
When it comes to desktop automation, this holds true as well.
nut.js allows you to locate template images on your screen, a key capability for automation.
To do so, we will have to install an additional package, providing the actual implementation to perform image comparison.
Otherwise, all functions relying on image matching will throw an error like
Error: No ImageFinder registered.
One available option would be
To use this provider package, simply require it in your code, e.g.
By default, image search is carried out over multiple scales.
All above-mentioned functions are very powerful helpers when automating more complex tasks, so let's see how we can use them to our advantage!