Auto clicker using Apple Mac scripting
I need to make an auto clicker using apple script, or whatever it's called. Im not sure what code to use can someone help, If you have time could you type a code in that click in a specific area and can be stopped and turned on with a button. I'm new to apple scripting so I'm not sure how to make it.
Something like
when x clicked (idk)
click left mouse button 1000000 times
when g clicked end
iMac 21.5″, macOS 10.14