PDA

View Full Version : timer shutdown



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.

amoniak
October 13th, 2002, 12:55 PM
Hello
before, I'd like to congratulate you for this fantastic soft which is girder! thanks!

And i'd like to make a command which shutdown computer after a selectioned time with one only button, and to cancel with another button. For example on first button push it shutdown after 10 minutes, on second after 20 minutes, on third after 30 minutes, and so on... Is it possible???

I hope you understood my question because I'm not english and I try to speak a comprehensible langage.

Thanks.

amoniak
October 13th, 2002, 12:55 PM
up

amoniak
October 13th, 2002, 12:55 PM
This solution seems good and i have got already make a one choice timer.
I have just to read about registry and try to do this. Thanks.