Trying to make an autoclicker using apple script
I need to make an auto clicker that clicks on 2 different set locations on the screen, I’ll try to be detailed, but not too much, I don’t mind what code its written in, I just need it to get the job done, the auto clicker is for an application game outside of safari, I basically need it to let my player survive as long as possible (i.e drinking water/eating). I tried using an app like Automator, but instead of actually clicking on the application, it just clicked outside of the app, as if its just hovering and the clicks aren’t registering, I checked out other threads, they gave detailed codes and everything, but when put into apple script, they just dont click, the interval between clicks has to be pretty short, and if it is possible, it would be nice if the clicking only occurred on the specific tab, so that means if I click out or go on a different tab, it would only click on the application and not the screen. Sorry for the big request and paragraph,
Thanks,
MacBook Air 11", macOS 10.15