Sometimes, very rarely, if you leave the tool running long enough with a long enough delay(longer than 1 second) the cursor position will line up and display the tooltip for the X symbol above the download button, which will cover the download button making the image recognition fail.
There are plenty of potential fixes but I have a suggestion which will fix multiple issues at once. How about remembering where the cursor was before clicking and then moving it back after clicking the button. This way the tooltip issue wouldn't happen and you'd also make it much simpler to do things in parallel to this tool being active.
Sometimes, very rarely, if you leave the tool running long enough with a long enough delay(longer than 1 second) the cursor position will line up and display the tooltip for the X symbol above the download button, which will cover the download button making the image recognition fail.
There are plenty of potential fixes but I have a suggestion which will fix multiple issues at once. How about remembering where the cursor was before clicking and then moving it back after clicking the button. This way the tooltip issue wouldn't happen and you'd also make it much simpler to do things in parallel to this tool being active.