How do you click a certain area on your desktop without moving the mouse?

I no you have to use the api mouse_event, but do I have to use it with setcursor?