# Changing scheduled gateway script times from HMI

**URL:** <https://forum.inductiveautomation.com/t/changing-scheduled-gateway-script-times-from-hmi/91540>\
**Category:** Ignition\
**Created:** [June 7, 2024, 10:34am UTC](https://forum.inductiveautomation.com/t/changing-scheduled-gateway-script-times-from-hmi/91540 "2024-06-07T10:34:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan\_Olin](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@Johan\_Olin](https://forum.inductiveautomation.com/u/Johan_Olin)\
**Post date:** [June 7, 2024, 10:34am UTC](https://forum.inductiveautomation.com/t/changing-scheduled-gateway-script-times-from-hmi/91540/1 "2024-06-07T10:34:24Z")

</div>

Complete Ignition newbie here:  
I've managed to wrap my head around the Gateway event scripts and got a scheduled script writing to an OPC tag once an hour.  
Now lookingfor a way to make the time adjustable by the user. Ie. bring the 'Settings' pan of a scheduled script to a HMI Window.

Makes sense ? simple solution ?

---

<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:** [June 7, 2024, 12:04pm UTC](https://forum.inductiveautomation.com/t/changing-scheduled-gateway-script-times-from-hmi/91540/2 "2024-06-07T12:04:48Z")

</div>

Makes sense, yes. Not possible in Ignition.

If you need something adjustable, maintain a schedule database and use a one-minute scheduled event (every minute) to see what is due to execute. Mark execution start times in the database before execution to ensure no accidental repeats.

---

<div class="post-metadata">

**Author:** ![jdehart](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jdehart/32/17840_2.png) [@jdehart](https://forum.inductiveautomation.com/u/jdehart)\
**Post date:** [June 7, 2024, 4:07pm UTC](https://forum.inductiveautomation.com/t/changing-scheduled-gateway-script-times-from-hmi/91540/3 "2024-06-07T16:07:23Z")

</div>

I agree with Phil and have done something "like" this. I made a client idle detection script that runs once a minute and if a client is idle it adds a minute to a client tag, and then checks how many minutes they've been idle against a database configured time - if beyond configured time - perform the action.

not at all same use-case, but the same in that neither of our scripts would run at a configurable time - but using a configured time variable in a db for our script to check against periodically.
