how to add mouse simulation clicks

This is a discussion on how to add mouse simulation clicks within the C Programming forums, part of the General Programming Boards category; Hi, I'm new to programming. I am trying to modify an eye blink tracking program for my need. Let me ...

how to add mouse simulation clicks

Hi, I'm new to programming. I am trying to modify an eye blink tracking program for my need. Let me explain it in detail.
Due to my disease I need to use an eye tracking program, I found one free on the net, there are several headmouse softwares that one of them has blink-click feature but it's not as good as headmouse 1.5 in this link http://nipg.inf.elte.hu/headmouse/headmouse.html (it's not open source) it's smoother, faster and precise but lack of blink click feature. I found another supplementary project written by Nashruddin, it tracks eye blinks and when it detects blink it only shows "blink" text.
What I'm trying to do is to combine them and send clicks by my blinks.
I am trying to add mouse simulation clicks into codes where it shows "blink" text.
Here is the mouse simulation clicks code.

I inserted the above code into line 118, when I blink it clicks only once and then blocks mouse to send another click till I close the application. I don't have any programming background. What do I wrong with it?
Regards.