Haha, yeah it might irritate my users but I have no other idea how to make the mouse click on a selected x/y position. I'm still fairly new to lazarus and pascal.
Yeah, the guy wants to play a game that normally doesn't have an AI but he wants me to design an "auto clicker"(first time i've ever heard of one lol) that moves the mouse to the x/y of a button and clicks. I totally agree with you though use the mouse pad xD
edit: can I have some code for calling the OnClick procedure?
Ok, thanks for all your help, I appreciate it ^^I'm thinking this only works with a button in the program you are running right? I'm trying to click say the post button on this site. This program that he wants to use the clicker is made in flash I believe...