# Trial mode detection

**URL:** <https://forum.inductiveautomation.com/t/trial-mode-detection/27418>\
**Category:** Ignition\
**Created:** [August 14, 2019, 9:48am UTC](https://forum.inductiveautomation.com/t/trial-mode-detection/27418 "2019-08-14T09:48:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henk](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Henk](https://forum.inductiveautomation.com/u/Henk)\
**Post date:** [August 14, 2019, 9:48am UTC](https://forum.inductiveautomation.com/t/trial-mode-detection/27418/1 "2019-08-14T09:48:35Z")

</div>

How can it be determined whether a gateway is running in the Trial (2 hour) mode?

---

<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:** [August 14, 2019, 2:28pm UTC](https://forum.inductiveautomation.com/t/trial-mode-detection/27418/2 "2019-08-14T14:28:06Z")

</div>

What logic are you trying to drive off of the trial mode? Also, what scope are you trying to check the trial mode in?

---

<div class="post-metadata">

**Author:** ![Henk](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Henk](https://forum.inductiveautomation.com/u/Henk)\
**Post date:** [August 15, 2019, 5:04am UTC](https://forum.inductiveautomation.com/t/trial-mode-detection/27418/3 "2019-08-15T05:04:51Z")

</div>

We do not use a license key during development and testing. However, this means that there is a bar at the bottom of the runtime screen that tracks how much time is available in the trial version and a scroll bar on the right side of the screen. To prevent the scroll bar, I make the total height of the runtime screen 20 pixels smaller. Because of this there is now space available for the bar and it prevents the visibility of the scroll bar. Now this action is done manually, but if this can be done automatically by detecting the trial mode, this would be nice.

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [August 15, 2019, 12:05pm UTC](https://forum.inductiveautomation.com/t/trial-mode-detection/27418/4 "2019-08-15T12:05:40Z")

</div>

If you have access to an always-on PC or VM, you could use a GUI automation toolkit like [Sikuli](https://github.com/RaiMan/SikuliX1) to monitor the gateway portal for the trial banner and/or reset button. Have a script click it anytime it appears.

---

<div class="post-metadata">

**Author:** ![Henk](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Henk](https://forum.inductiveautomation.com/u/Henk)\
**Post date:** [August 15, 2019, 12:27pm UTC](https://forum.inductiveautomation.com/t/trial-mode-detection/27418/5 "2019-08-15T12:27:42Z")

</div>

Thanks for the reply. However, it is not my intention to automatically extend the trial time but to prevent the scrollbar on the right side of the run-time screens from appearing.
