Hm. Have never had to do this. Interesting idea.
You’ll have to recognize this using brute force (i.e. programming). Windows provides messages for single clicks and double clicks. You will have to recognize single clicks, starting a timer when the first one occurs, then making sure the second and third clicks arrive (from the same position as the first, or at least close to the first position) with in a suitable time period, like 1/2 to 3/4 second.