# Enable/Disabling a Gateway Timer script via script

**URL:** <https://forum.inductiveautomation.com/t/enable-disabling-a-gateway-timer-script-via-script/106734>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 27, 2025, 3:57pm UTC](https://forum.inductiveautomation.com/t/enable-disabling-a-gateway-timer-script-via-script/106734 "2025-05-27T15:57:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [May 27, 2025, 3:57pm UTC](https://forum.inductiveautomation.com/t/enable-disabling-a-gateway-timer-script-via-script/106734/1 "2025-05-27T15:57:12Z")

</div>

I have a button. When it's enabled I want the timer script to always execute (enable) but if the user press it again I want the script to not run (disable).

Our current solution is something like this:

```python
#timer
active = system.tag.readBlocking(["path/timer_script_1"]) # bool tag
if active[0].value:
    # Do stuff
    print "Hello world!"

```

And the button toggles the tag.

Could I enable the script in its entirety?

Thanks in advance!

---

<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:** [May 27, 2025, 4:04pm UTC](https://forum.inductiveautomation.com/t/enable-disabling-a-gateway-timer-script-via-script/106734/2 "2025-05-27T16:04:22Z")

</div>

No. What you are doing is currently the recommended practice. (There will be more options in v8.3.)

---

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [May 29, 2025, 7:24am UTC](https://forum.inductiveautomation.com/t/enable-disabling-a-gateway-timer-script-via-script/106734/3 "2025-05-29T07:24:35Z")

</div>

Thanks pturme l
