Click event in python api

I got one question troubling me for some time, does VC have a mouse click event Python api(click component ) or i have to use the netCommand to do it(which one), I would like to script it inside the component,thank you. And some examples on how to script event in VC will be much useful.



Check the vcSelectionManager in Python API. Get the manager instance from vcApplication e.g. sm = app.SelectionManager

Listen for OnSelectionChanged event and use getSelection(VC_SELECTION_COMPONENT) in the event handler to check if there’s any component(s) selected etc.

Thank you,dear jouha,it works just fine.I will try to script my own event,hope it works.

Let me challenge you: how about double click event:)