Re: Windows 95/NT Screen Saver in Euphoria
- Posted by Richard Farnsworth <MRF0044%ROUGH at BIZET.MITS.COM.AU> Jan 02, 1998
- 752 views
At the risk of starting a flame war, Ralf wrote in reply to my comments regarding screensavers... > >>Bind it with Bindw only (Can't make a DOS program a screen saver). > > Yes, you can.. do you think windows cares that your program is dos or >windows based, it just launches it. > I have never tried this, but it must work.. Yes, I think windows DOES care. I have tried this and it does not work. Try it before posting next. (Please prove me wrong !) >>How do you make the screen saver properly compliant with mouse and keyboard >>movement, hot spots, previews (W95) etc. All non-trivial stuff. > > I have never tried to make this, but windows delivers no support for >this at all, so you'll have to make a program that will abort () when the >mouse moves, or when a key is hit. In dos this would be fairly easy.. Sure, from Euphoria windows ? No mouse support routines like Dos. (Get_mouse is DOS32 only - page 26 Library). >And (the killer as far as I'm concerned. How do you get rid of the console >window. As far as I see in the Alpha release ( page 2 platform.doc) the WIN32 >Euphoria programs will ALWAYS have a console window associated with it. > > Yes, but you can give your full-screen screensaver the focus, and then >the console window will be hidden, when your program looses focus, then your >program will simply abort, and the console window will dissapear, I really >don't think this would be a problem. Good point, worth persuing. I'll try something like this. (inelegant though) > > BTW You could also bind it with bind (if it's dos based, but the pif of >the file should make sure, that no window-key tricks are allowed >(ctrl+escape, etc.) > If pifs don't work, there are same ASM hackers that will turn it off >(for as long as your program runs) What on earth are same ASM Hackers ? >>Ralf, did you actually try to make a screen saver. Sure you can run a bound >>program from the screen saver config panel. This is NOT a screen saver. > > Yes, many years ago, in visual basic. > It worked the same way, only I'm not 100% sure what command line options >will be set, when the user needs to configure the screensaver.. > (BTW It worked this way with win311, but windows is backwards >compatible) I think you mean, No not in Euphoria ever. Sure VB Screensavers work, as do C screensavers and many other languages. I would like to see an Euphorian Screensaver though. >>Has anyone actually had any luck. Can anyone post an example if I am wrong. > > Maybe in a day or two, i'll fix something up. This really isn't so hard. Please do. I think it's harder than you claim. Regard Richard Farnsworth Richard at mits.com.au might work.