How to select feature by mouse click(API control)

I want to get the feature name/type by mouse clicking at therunning time of solidworks.

Does anybody have some examples or suggestions?

thanks in advance!SolidworksApi macros