0

I'm trying to create a simple function where I can start a timer with a button. After the timer is done (1 minute in this example), I want to execute another function and stop the timer.

I want to use a button to start the timer in a simple sheet to show a message when the timer is over.

function buttonTimer1min() {

  ScriptApp.newTrigger("timer1Minute")
  .timeBased()
  .after(5000)
  .create();

}

function timer1Minute(){

}
ross
  • 2,684
  • 2
  • 13
  • 22

1 Answers1

0

You can find more information on the Apps Script website her newTrigger(functionName) also check Class ClockTriggerBuilder for more details about the methods you can use.

Mario R.
  • 659
  • 5
  • 11