Click Event extension for any components Help Please!

Hi There,
I am trying to create an extension that takes component as the parameter and adds onclick event to that component. Can anyone help me to achieve this. I have developed an extension, it takes component as parameter and I have a simpleevent with eventdispatcher.dispatchEvent(component, “Click”); but the click event is not working.:thinking:

for questions about working with the App Inventor sources, please ask in the Open Source Group!forum/app-inventor-open-source-dev

Thank you

I am not getting any reply on that Group
Can anybody please give me some Idea on how to do this?

btw. there already is a Click Listener Extension by @Mika
actually there is no need to develop a duplicate extension…