jediperry
October 13th, 2002, 12:55 PM
The best way to do this would be with the alarm timer plugin. Unfortunatly it doesn't seem to accept registers in the timeout section so it will have to be a more messy solution.
For the basic operation, you would need a command to start the timner with the 10 min timout, a command to cancel the timeout (Same timer id, but a timeout of zero), and a the shutdown command itself pointed to in the 'on end' section of alarm timer in the first command.
To increase the timout, the only way i can think of at the moment would be to set a register to 0, then on each press of the shutdown button, check the register value each time and have a command with a timout of 10 when reg=0, timout of 20 when reg=1 etc. And increment the register on each exicution.
Hope this helps a bit,
Mike.
For the basic operation, you would need a command to start the timner with the 10 min timout, a command to cancel the timeout (Same timer id, but a timeout of zero), and a the shutdown command itself pointed to in the 'on end' section of alarm timer in the first command.
To increase the timout, the only way i can think of at the moment would be to set a register to 0, then on each press of the shutdown button, check the register value each time and have a command with a timout of 10 when reg=0, timout of 20 when reg=1 etc. And increment the register on each exicution.
Hope this helps a bit,
Mike.