Re: Shutting down the Iyonix by program
- From: Steve Fryatt <news@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 18 Sep 2005 14:51:54 +0100
On 18 Sep, David Buck wrote in message
<dgjjl8$eba$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
> Thomas Milius wrote:
>
> > Is there a command to allow a shutdown of a RISC OS machine by program
> > (the same what is done usually by pressing the keys Ctrl-Shift-F12)?
> >
> > Usually this makes not much sense since the older machines must be
> > switched off manually afterwards. However never machines as the Iyonix
> > will switch off automatically.
>
> As far as I know, you can send a message (number 0?) to initiate a
> shutdown. You could also send message 8 first, to allow tasks to either
> complain or save their data.
You need to send a Message_Quit (0) to each task, before starting a
shutdown; Message_PreQuit (8) can be used in advance, to warn tasks and
give them the chance to object.
This doesn't actually shut the machine down, however. The easiest way to
achieve this is to pass a Ctrl-Shift-F12 keypress (&1FC) to
Wimp_ProcessKey, which is the way the PRMs recommend re-starting a
shutdown process if your app terminates it on receiving a Message_PreQuit.
--
Steve Fryatt - Leeds, England
http://www.stevefryatt.org.uk/
.
- References:
- Shutting down the Iyonix by program
- From: Thomas Milius
- Re: Shutting down the Iyonix by program
- From: David Buck
- Shutting down the Iyonix by program
- Prev by Date: Re: Shutting down the Iyonix by program
- Next by Date: Re: Shutting down the Iyonix by program
- Previous by thread: Re: Shutting down the Iyonix by program
- Next by thread: Re: Shutting down the Iyonix by program
- Index(es):
Relevant Pages
|