Click on specific position on canvas by script

Hello! I have searched for this problem of mine for a while and I couldn’t get any answers. So here is my problem

I need to click or simulate a click on canvas with a specified position by scripts. For example I need to be able to click at canvas position (20,10) by writing scripts. Can anybody help me. Thanks!