Auto Power Feature ================== Basic supports several powerful functions associated with the POWER key. Basic programs can control precisely what occurs on switch on, or even not allow HUNTER to be turned off. The following commands and statements are available: - :doc:`ON POWER GOTO <../basic-functions/on-power>` - :doc:`ON POWER RESUME <../basic-functions/on-power-resume>` - :doc:`POWER CONT <../basic-functions/power-cont>` - :doc:`POWER n <../basic-functions/power-n>` - :doc:`POWER OFF <../basic-functions/power-off>` - :doc:`POWER OFF RESUME <../basic-functions/power-off-resume>` Default Conditions ------------------ The power key behaves as normal - at any stage it can be used to turn HUNTER on or off. The current execution position is lost on turning the power off, and turning it back on returns to the File Manager. However the current Basic program and variables are retained. POWER CONT ---------- #. The power key is disabled. #. The automatic timeout power down (if no key is pressed within a set period of time) is disabled. POWER n ------- #. This command overrides a previous POWER OFF. #. n refers to the automatic power down timeout: 1. n must be in the range 10-255 or 0 1. n=0 is no automatic timeout 1. n is in multiples of 5 seconds POWER OFF --------- #. Turns the power off. #. When power is turned on, Basic program execution starts at the beginning. POWER OFF RESUME ---------------- As POWER OFF, but turning HUNTER on continues execution where it left off. ON POWER GOTO ------------- When the power button is hit (during program execution) program execution goes to the specified line number. ON POWER RESUME --------------- #. Powering down proceeds as normal. #. Powering up begins program execution where it left off. Timeouts -------- HUNTER has an automatic timeout (see :ref:`auto-timeout`). This can be modified using :doc:`../basic-functions/power-n`. If HUNTER has been switched off, the power down timeout is set back to the default of 5 minutes unless :doc:`../file-manager/file-manager-commands/cont` or :doc:`../basic-functions/power-off-resume` has been used.