Graphics

 View Only
  • 1.  Adjust timer widget with script

    Posted 08-27-2017 06:11
    Hello there,

    What would be the script required to adjust the time on a clock widget with keyboard shorcuts? Looking to make a couple keys that would add or take away 30sec, even while the timer is running.

    Thanks!


  • 2.  RE: Adjust timer widget with script

    Posted 08-29-2017 13:16
    Here is a quick script I used to create a GPI which you could map a keyboard shortcut to. It will get the timer value and add or subtract 30 seconds to it while on air.
    Get the countdown clock widget from engine, get the TimerValue and either add or subtract 30000 milliseconds.


    dim Clock as xpBaseWidget
    Engine.GetWidgetByName("CountdownClock",Clock)
    Clock.TimerValue = Clock.TimerValue + 30000

    Use the same thing for subtracting.

    Hope this helps.
    Mike

    #XPression