Hello - i am looking for a way to make the mouse click from code - i am pretty sure this is done with API i just do know how

Any help is welcomed , thank you ...