How to capture mouse clicks?

 
I would really appreciate code example of how to capture the mouse clicks as input parameters for the indicator. Exact example is Andrews' Pitchfork input, with three clicks determining the selection of high/low of three bars.
Many thanks!
 
no!

now MT not support inaction between MT user's code and user's actions like mouse click.

only MT software itself can do so like that for toolbox
Reason: