# Creating custom event handlers with scripting

**URL:** <https://forum.inductiveautomation.com/t/creating-custom-event-handlers-with-scripting/72009>\
**Category:** Ignition\
**Tags:** vision, ignition81, scripting\
**Created:** [April 4, 2023, 11:45am UTC](https://forum.inductiveautomation.com/t/creating-custom-event-handlers-with-scripting/72009 "2023-04-04T11:45:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 4, 2023, 12:04pm UTC](https://forum.inductiveautomation.com/t/creating-custom-event-handlers-with-scripting/72009/2 "2023-04-04T12:04:00Z")

</div>

Hmmm. I don't know if those are in the API. You have to set very specificly-named Swing component client properties with lists of objects that encapsulate the events. You might need to do some reflection research on the contents of various client props. Perhaps this topic:

> [@Component Event Property Methods](https://forum.inductiveautomation.com/t/component-event-property-methods/30982/2):
>
> The method putClientProperty adds a new property to the component it’s called on. In this instance, @witman was adding a property called singleClick to the button component and setting its value to true. So singleClick was an added custom property. putClientProperty and getClientProperty are methods available to objects that inherit from the javax.swing.JComponent class. The [javadocs](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/index.html) will show you what methods and properties are available to all Ignition classes, but these all inherit from sta…

---

_[View the full topic](https://forum.inductiveautomation.com/t/creating-custom-event-handlers-with-scripting/72009)._
