Screensaver Preview Dev

Blitz3D Forums/Blitz3D Programming/Screensaver Preview Dev

Red(Posted 2004) [#1]
I'm working on this part of screensaver...

Download : [a http://www.blitzcoder.com/cgi-bin/showcase/showcase_download.pl?id=eddy__blitzmaniac02272004204528&fileurl=http://www.blitz3dfr.com/vos_projets/Saver.zip]First test[/a]
- only userlibs
- no DLL




Red(Posted 2004) [#2]
ToDo:
- reduce CPU time
- find a way to detect preview end


Ziltch(Posted 2004) [#3]
Very clever!


BlackJumper(Posted 2004) [#4]
I'm running XP Home and I put the saver.scr in the C:\I386 folder.

Cheers Ed,

When I try to choose the saver it is not listed in the dropdown box. (I tried rebooting to see if that would fix things)

If I try running it from the command line (with /c or /s flags) there is a brief dos box style window and then nothing.

I would be intersted in knowing how you solved the preview issue if you get it working well.


Red(Posted 2004) [#5]
Arghh ! I can't destroy B3D screensaver preview.
I don't know how to detect the window message WM_DESTROY from WindowPanel.

@BlackJumper
Did you try right-click to show the context menu ?
> right click on your saver file > choose install


BlackJumper(Posted 2004) [#6]
Thanks Ed... that fixed things (obviously I need to update my OS skills from the dark ages of W95 !)

However, as you probably know, if I try to change the preview to some other screensaver I get superposition of your example with the other one (i.e. it is not getting an 'end' command)

Also, your saver does not appear in the drop-down box if I close then reopen the Display Properties control panel.

There may be a case here for hijacking the entire Windows message queue and using PeekMessage to find what you are looking for. May also need GetHWND("Windowpanel") or something similar, and then there will probably be different names for differnt OS verions. I will try to investigate if I get a bit of time...