|
RISC OS 4-style screensavers |
|
rich (17:34 14/2/2003) john (09:31 17/2/2003) rich (09:53 17/2/2003) monkeyson2 (10:03 17/2/2003) rich (10:53 17/2/2003) monkeyson2 (10:59 17/2/2003) rich (11:31 17/2/2003) monkeyson2 (11:37 17/2/2003) rich (11:57 17/2/2003) monkeyson2 (12:20 17/2/2003) rich (12:49 17/2/2003) Phlamethrower (13:24 17/2/2003) rich (13:45 17/2/2003) Phlamethrower (14:15 17/2/2003) rich (16:46 17/2/2003) monkeyson2 (16:52 17/2/2003) john (09:24 18/2/2003)
|
|
Richard Goodwin |
Message #32248, posted by rich at 17:34, 14/2/2003 |
Dictator for life
Posts: 6828
|
OK, so my JPEG loading screensaver is kind of working... except it doesn't stop without an ALT-break. I thought I'd ripped off^H^H^H^H^H^H^H^H^H^Hwritten code that would automatically stop using the in-built RISC OS-iness, but no. So, instead of me kludging a stop routine, anyone know how to do this stuff properly? In BASIC? ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
John D |
Message #32457, posted by john at 09:31, 17/2/2003, in reply to message #32248 |
Member
Posts: 261
|
Are you Wimp_Polling regularly and checking the correct poll word? I presume you have docs/example code. |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #32469, posted by rich at 09:53, 17/2/2003, in reply to message #32457 |
Dictator for life
Posts: 6828
|
Are you Wimp_Polling regularly and checking the correct poll word? I presume you have docs/example code. pt.1: I thought I was, but maybe not. pt.2: No, couldn't find it, I'm reverse engineering someone else's code. If you can point me to the docs... (Google let me down for once) ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Phil Mellor |
Message #32472, posted by monkeyson2 at 10:03, 17/2/2003, in reply to message #32469 |
Please don't let them make me be a monkey butler
Posts: 12380
|
No, couldn't find it, I'm reverse engineering someone else's code. If you can point me to the docs... (Google let me down for once) I thought the online version of RISC OS Foundation had an article about writing a RO4 screensaver - can't seem to find it now.
Alternatively, subscribe to Select. |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #32490, posted by rich at 10:53, 17/2/2003, in reply to message #32472 |
Dictator for life
Posts: 6828
|
Alternatively, subscribe to Select. Hmm... buy software I don't want, just so I can help write their software for them? I don't think so! I bought RISC OS 4 (twice) and would like to know how to program that, thanks. Additional chrome I can do without.
At least Acorn used to make AppNotes available for this sort of thing Yes, you had to buy PRMs for the full deal, but if you wanted to know about tricky new stuff like clipboards and drawfile modules, you could just download it from their FTP site. After all, by using the AppNotes to write software, you're adding to the richness of the OS. ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Phil Mellor |
Message #32494, posted by monkeyson2 at 10:59, 17/2/2003, in reply to message #32490 |
Please don't let them make me be a monkey butler
Posts: 12380
|
Hmm... buy software I don't want, just so I can help write their software for them? I don't think so! I bought RISC OS 4 (twice) and would like to know how to program that, thanks. Additional chrome I can do without.
If you had Select you'd have the nice ImageFileRenderer module which might do some nice JPEG and other format plotting for you. Which would mean you wouldn't have to nick other JPEG plotting code. |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #32507, posted by rich at 11:31, 17/2/2003, in reply to message #32494 |
Dictator for life
Posts: 6828
|
Hmm... buy software I don't want, just so I can help write their software for them? I don't think so! I bought RISC OS 4 (twice) and would like to know how to program that, thanks. Additional chrome I can do without. What? You seem to suggest that buying Select is the answer to all my troubles. I'm telling you why that's not going to happen. Now be a nice and answer the question I asked, instead of just being an advertising for ROL
If you had Select you'd have the nice ImageFileRenderer module which might do some nice JPEG and other format plotting for you. Which would mean you wouldn't have to nick other JPEG plotting code. I'm not. I wrote my own - it's only half a dozen lines to load the image into memory, and one SWI to render the image, and that'll work for most if not all RiscPCs[*] out there rather than just a small subset with Select installed. I found the SWI in StrongHelp and worked it out myself.
* Okay, so as a screensaver it needs RISC OS 4 or better, but RISC OS 4, RISC OS Select and RISC OS 5 is still better than Select alone.
Image rendering I'm fine with - it's the less well documented screensaver code that I'm interested in. ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Phil Mellor |
Message #32508, posted by monkeyson2 at 11:37, 17/2/2003, in reply to message #32507 |
Please don't let them make me be a monkey butler
Posts: 12380
|
Image rendering I'm fine with - it's the less well documented screensaver code that I'm interested in. Well, write it for Delirium then.
Or ask someone with Select to look it up for you.
[Edited by monkeyson2 at 11:45, 17/2/2003] |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #32515, posted by rich at 11:57, 17/2/2003, in reply to message #32508 |
Dictator for life
Posts: 6828
|
Image rendering I'm fine with - it's the less well documented screensaver code that I'm interested in. Well, write it for Delirium then. That would be the one that shrunk my desktop to about 400x300, thus making all my windows crunch up. And as I didn't have resize icons on them, I had to quit my apps and start them again.
Now I get people complaining that I have resize icons on all the windows of any apps I write...
Thanks, but I think I'll stick to the proper stuff
On a more serious tangent, multitasking screen savers are a bit of a hassle, as you appear to have to make a window the size of the current desktop and plot on top of that so you don't get flashing carets etc. showing through. If I'm kludging my own exit strategy, I could just monotask, switch to a mode that used more colours, do all sorts of funky things and know that it'll all work much faster. However, desktop apps will stop dead for the duration. I know a lot of screensavers don't seem to care about this, but what's more important - keep things running in the background, or make things look as nice as possible? This is a photograph displayer, but still, playing nice seems like a worthwhile effort... ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Phil Mellor |
Message #32518, posted by monkeyson2 at 12:20, 17/2/2003, in reply to message #32515 |
Please don't let them make me be a monkey butler
Posts: 12380
|
You could look at someone else's code: http://users.argonet.co.uk/users/coleman/frames/software.html
Not been able to check that program, because I can't run Red Squirrel plopperly with a two button mouse.
RISC OS 4 allows you to open a window that stays at the front, doesn't it? (Like how you can open a window that stays at the back, like Pinboard). Otherwise other apps could pop things up over your screensaver.
Maybe you could combine your screensaver with one of those CPU monitoring programs, so that you can hog the machine for longer when nothing else is going on much. |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #32521, posted by rich at 12:49, 17/2/2003, in reply to message #32518 |
Dictator for life
Posts: 6828
|
You could look at someone else's code: http://users.argonet.co.uk/users/coleman/frames/software.html
I think that's the one I used! I'm not sure I pinched^H^H^H^H^H^H^Himplemented the poll code stuff properly though.
RISC OS 4 allows you to open a window that stays at the front, doesn't it? (Like how you can open a window that stays at the back, like Pinboard). Otherwise other apps could pop things up over your screensaver. Yes, that's what I mean. So far I've just been blatting the image to the screen, which shows things through, but I've seen that others seem to use a window; it's one more tick in the "just monotask" column Without being able to get return to the desktop properly the screensaver I knocked together hasn't exactly become very sophisticated over the weekend
Maybe you could combine your screensaver with one of those CPU monitoring programs, so that you can hog the machine for longer when nothing else is going on much. I was actually thinking of writing a monitor as a screensaver anyway - a techie reading of disc/memory/cpu/network usage sort of thing. Possibly with graphs, and green monitor-ness . I'd like to get the photograph one working first, but if I need to look into CPU usage first... ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #32528, posted by Phlamethrower at 13:24, 17/2/2003, in reply to message #32521 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
Why not try the WIMP StrongHelp manual?
http://www.acornsearch.com/cgi/sh-cgi?manual=Wimp |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #32532, posted by rich at 13:45, 17/2/2003, in reply to message #32528 |
Dictator for life
Posts: 6828
|
Why not try the WIMP StrongHelp manual?
http://www.acornsearch.com/cgi/sh-cgi?manual=Wimp Um, I've been using that for years - the offline version anyway. I've probably got most of the system resource code kicking around already from that game database program I wrote that checked your system and told you what games would be able to run, and what patches you needed to download. Didn't get a release as I only had so many games, and no-one else on AA submitted any data ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #32549, posted by Phlamethrower at 14:15, 17/2/2003, in reply to message #32532 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
Never heard about that
I've got a load of games if you're still interested. |
|
[ Log in to reply ] |
|
Richard Goodwin |
Message #32591, posted by rich at 16:46, 17/2/2003, in reply to message #32549 |
Dictator for life
Posts: 6828
|
Never heard about that
I've got a load of games if you're still interested. It would get a whole lot more, um, interesting now - there's Select and RISC OS 5 to cater for, and more hardware kicking about.
Although Select =~RO4, and most modern hardware would probably react in pretty similar ways to each other, and I could just put "Won't work" for RISC OS 5 ________ Cheers, Rich.
|
|
[ Log in to reply ] |
|
Phil Mellor |
Message #32598, posted by monkeyson2 at 16:52, 17/2/2003, in reply to message #32591 |
Please don't let them make me be a monkey butler
Posts: 12380
|
More RO4 screensavers at - http://ajps.mine.nu/isparpsoft/software.php?page=screensavers |
|
[ Log in to reply ] |
|
John D |
Message #32713, posted by john at 09:24, 18/2/2003, in reply to message #32469 |
Member
Posts: 261
|
If you OS_GetEnv or whatever and look at the output it will tell you the poll word to watch, in a simple format, I think it's -pw &xxxxxxxx or similar. You have to plot your stuff in a window the same size as the screen, as you're still a well behaved wimp application, and of course you have to poll regularly for the same reason I don't think you can get the docs, I'm working from memory of probably FRU issue 3ish. I've written one which is on http://www-users.york.ac.uk/~jwd104/ which you may find vaguely useful. |
|
[ Log in to reply ] |
|
|