Re: Shutting down the Iyonix by program



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/

.



Relevant Pages

  • RE: packaged received but didnt run
    ... first you need to make sure your package is set to run whether someone is ... Run the shutdown command as an admin so it will have command over everything. ... timeout period.If this switch is used, ...
    (microsoft.public.sms.swdist)
  • Re: Why Restart & Shutdown Buttons on login screen
    ... Reboot and shutdown allowed before login for any ... And they Believe that the software switch is being hit mostly out of accident or forgetfulness. ... it is rude to make the next user wait for the machine to power up. ... the computer lab wants to keep itself warm with the exhaust from the computers. ...
    (Fedora)
  • Re: Problem restarting server via rww
    ... Try opening a command prompt and issue the shutdown command with a /r switch ... When I restart server while logged in to it via rww the server seems to restart and rww disconnects but server does not actually restart. ...
    (microsoft.public.windows.server.sbs)
  • Re: Shutting down the Iyonix by program
    ... >> Is there a command to allow a shutdown of a RISC OS machine ... >> as the Iyonix will switch off automatically. ... > REM Check to see if we've got software control of the CPU ...
    (comp.sys.acorn.misc)
  • Re: shut down
    ... When responding to posts, please "Reply to Group" via your newsreader so ... Newsgroups: microsoft.public.windowsxp.hardware ... for example this shutdown row: ... shutdown.exe directly for more information about the switch. ...
    (microsoft.public.windowsxp.hardware)