# Listen to ActiveX Event

**URL:** <https://forum.inductiveautomation.com/t/listen-to-activex-event/5183>\
**Category:** Ignition\
**Created:** [September 25, 2012, 2:57pm UTC](https://forum.inductiveautomation.com/t/listen-to-activex-event/5183 "2012-09-25T14:57:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [September 25, 2012, 2:57pm UTC](https://forum.inductiveautomation.com/t/listen-to-activex-event/5183/1 "2012-09-25T14:57:49Z")

</div>

Hi,

I’ve an activeX component to manage magnetic badge reader and need to wait for an event…How can I listen to an event in a custom ActiveX ? I can access properties (get or setProperty and functions (invokeFunction) but not to event.

Thank you for your help or direction.

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [September 25, 2012, 4:31pm UTC](https://forum.inductiveautomation.com/t/listen-to-activex-event/5183/2 "2012-09-25T16:31:14Z")

</div>

Are you wanting to trigger an event on an audio component being triggered within Ignition? ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

---

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [September 25, 2012, 4:54pm UTC](https://forum.inductiveautomation.com/t/listen-to-activex-event/5183/3 "2012-09-25T16:54:21Z")

</div>

Greg,

No. We have to replace an old system (WIN2000) that is controlling a weigh bridge ; this is done with an ActiveX connected to the bridge via RS232. We must keep the ActiveX but integrate it in Ignition.  
Let me give you an example or two.

1. a truck is coming and the driver inserts is badge onto the reader. This is an event that is throw to the ActiveX and that we have to listen to
2. we need to tare the scale, so we have to invoke a function with parameters and wait for an answer with resulting parameters.

Hope this is more understandable 😉

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [September 26, 2012, 2:59am UTC](https://forum.inductiveautomation.com/t/listen-to-activex-event/5183/4 "2012-09-26T02:59:50Z")

</div>

You can’t listen to events with the ActiveX module. It is hard to wrap ActiveX in Java so we miss somethings. You can run a timer script that checks a property or invokes a function until the event occurs.

---

<div class="post-metadata">

**Author:** ![markdobtech](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@markdobtech](https://forum.inductiveautomation.com/u/markdobtech)\
**Post date:** [September 26, 2012, 1:33pm UTC](https://forum.inductiveautomation.com/t/listen-to-activex-event/5183/5 "2012-09-26T13:33:40Z")

</div>

Why not use the serial module and communicate directly with the bridge and bypass the activeX. We have been using the module and have found it very effective for driving scale indicators from various manufacturers.

---

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [October 15, 2012, 6:53pm UTC](https://forum.inductiveautomation.com/t/listen-to-activex-event/5183/6 "2012-10-15T18:53:07Z")

</div>

Sorry for the delay…didn’t receive (or see) the notification.  
We have investigated this but as the protocol is not documented, we would have to monitor the serial port to capture data and analyze ; the result should work but it is time consuming…  
We have made the request to change this toa newer version with web services. Should be easier and more fun for us 😉

Wait and see.
