My goal is to record mouse position on screen and then replay it. I found the part for creating mouse events easily, but couldn't find anything about recognizing and handling events. Or at least I couldn't find anything that was simple enough for me to understand and use.
So the question is, how can i recognize mouse clicks and handle them?