Deprecated: Function set_magic_quotes_runtime() is deprecated in /websites/123reg/LinuxPackage21/vi/rt/ua/virtualacorn.co.uk/public_html/forum/common.php on line 106
[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 916: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 920: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 920: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3528: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3529: Cannot modify header information - headers already sent by (output started at /common.php:106)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3530: Cannot modify header information - headers already sent by (output started at /common.php:106)
www.virtualacorn.co.uk/forum • View topic - !Alarm Source Code

www.virtualacorn.co.uk/forum

For support and advice on VirtualAcorn products
It is currently Wed Nov 22, 2017 12:06 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: !Alarm Source Code
PostPosted: Wed Oct 20, 2010 12:50 am 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
Is the source code for the !Alarm application available .....
..... and if so, where?

_________________
John


Top
 Profile  
 
 Post subject: Re: !Alarm Source Code
PostPosted: Wed Oct 20, 2010 11:18 am 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
The source for some versions of !Alarm will (probably) be available from RISCOS Open. For the versions bundled with RISC OS 4/6 you would need to be registered with RISCOS Ltd as being on the RISC OS development team.


Top
 Profile  
 
 Post subject: Re: !Alarm Source Code
PostPosted: Wed Oct 20, 2010 5:21 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
OK. Thanks.

Perhaps it might be enough if somebody with access to the code (for RiscOS 4.2) can tell me what SWI it uses to get the its time .....

..... and what poll SWI it uses to keep the display updating every second.

_________________
John


Top
 Profile  
 
 Post subject: Re: !Alarm Source Code
PostPosted: Thu Oct 21, 2010 10:48 am 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
The display being updated every second will be done with "Wimp_PollIdle". In BASIC I would expect something like:

SYS "Wimp_PollIdle",0,wimp_buffer%,polltime% TO r%

Where:

wimp_buffer% is our data block for receiving commands though the WIMP
polltime% is the time in centiseconds before we need to be polled again
r% is the action returned e.g. 1=Redraw Window 2=Open Window 3=Close window etc

There are several ways of reading the time on RISC OS machines. At it's most simple the BASIC reserved variable TIME$ (e.g. PRINT TIME$) will hold the correct time for when the variable is used.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group