# Extend Gateway Event Scripts

**URL:** <https://forum.inductiveautomation.com/t/extend-gateway-event-scripts/20169>\
**Category:** Module Development\
**Created:** [October 16, 2018, 5:03am UTC](https://forum.inductiveautomation.com/t/extend-gateway-event-scripts/20169 "2018-10-16T05:03:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![camatt3](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@camatt3](https://forum.inductiveautomation.com/u/camatt3)\
**Post date:** [October 16, 2018, 5:03am UTC](https://forum.inductiveautomation.com/t/extend-gateway-event-scripts/20169/1 "2018-10-16T05:03:24Z")

</div>

The the Gateway Event Scripts editor window there are tabs along the side for "Startup’, ‘Shutdown’, "Timer’, etc…  
I would like to add another group, e.g. ‘My Module Scripts’, where the user can define scripts that would be called by my module.

I’ve created a class that extends `AbstractMultiScriptEditor`, but not sure what to do with it.

Looking through the api for the Designer Module Hook I found the following for ClientScriptConfig, but I’m after the global/gateway event script config.

```auto
VisionDesignerInterface visionDesigner = (VisionDesignerInterface) context.getModule(VisionDesignerInterface.VISION_MODULE_ID);
visionDesigner.getWorkspace().getRoot().setScriptConfig(new ClientScriptConfig(), true);

```

Anyone have any ideas?

---

<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:** [October 16, 2018, 12:08pm UTC](https://forum.inductiveautomation.com/t/extend-gateway-event-scripts/20169/2 "2018-10-16T12:08:50Z")

</div>

I don’t think you can, but I’d be delighted to be corrected. Consider implementing your own workspace.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 16, 2018, 3:38pm UTC](https://forum.inductiveautomation.com/t/extend-gateway-event-scripts/20169/3 "2018-10-16T15:38:52Z")

</div>

It doesn’t look like this area is extensible through the API, no - the list of panels to display is hardcoded, and there’s no good way to access it externally.

Could be good for the [ideas](https://ideas.inductiveautomation.com/) portal, though.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [October 16, 2018, 4:24pm UTC](https://forum.inductiveautomation.com/t/extend-gateway-event-scripts/20169/4 "2018-10-16T16:24:44Z")

</div>

You can always make your own panel that is similar to the one Ignition uses, and expose that editor in the tree.
