1. Windows 95/NT Screen Saver in Euphoria
- Posted by "JesusC - (Jesus Consuegra)" <jconsuegra at REDESTB.ES> Dec 30, 1997
- 775 views
Hi Euphorians!. Does anybody know where to find information about how to write a Screen-Saver program in Euphoria?. Is any special requirement?. I've seen that screen savers under Windows are conatained in files ".SCR". Where can I find information of that kind of special programs?. Any help will be very welcome. Happy new year to everybody. Jesus, from Sitges (Spain).
2. Re: Windows 95/NT Screen Saver in Euphoria
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Dec 30, 1997
- 781 views
>Does anybody know where to find information about how to write a >Screen-Saver program in Euphoria?. >Is any special requirement?. I've seen that screen savers under Windows are >conatained in files ".SCR". >Where can I find information of that kind of special programs?. >Any help will be very welcome. A screen-saver.. Bind your program to an .exe Rename it to a .scr and copy it to your system directory. It will now show up as a screen saver. When you choose Configure in the cotrol panel, your program is started with the '/c' option (as the command line) When the screensaver needs to be start, it starts up with '/s' Ralf
3. Re: Windows 95/NT Screen Saver in Euphoria
- Posted by Richard Farnsworth <MRF0044%ROUGH at BIZET.MITS.COM.AU> Jan 02, 1998
- 760 views
Somebody wrote: >> >>Does anybody know where to find information about how to write a >>Screen-Saver program in Euphoria?. >>Is any special requirement?. I've seen that screen savers under Windows are >>conatained in files ".SCR". >>Where can I find information of that kind of special programs?. >>Any help will be very welcome. >> and Ralf N replied >A screen-saver.. > >Bind your program to an .exe >Rename it to a .scr and copy it to your system directory. >It will now show up as a screen saver. >When you choose Configure in the cotrol panel, your program is started with >the '/c' option (as the command line) >When the screensaver needs to be start, it starts up with '/s' > >Ralf Yes, but..... Bind it with Bindw only (Can't make a DOS program a screen saver). How do you make the screen saver properly compliant with mouse and keyboard movement, hot spots, previews (W95) etc. All non-trivial stuff. 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. 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. Has anyone actually had any luck. Can anyone post an example if I am wrong. Regards, Richard Farnsworth Richard at MITS.COM.AU (Mail may bounce - my company is in the process of changing it's mail servers) P.S. Check out Francis Bussiere's EW32 DLL wrappers for Euphoria. This makes windows programming possible and fun.
4. Re: Windows 95/NT Screen Saver in Euphoria
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Jan 02, 1998
- 763 views
[Cut out screen-saver stuff] >Yes, but..... >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.. >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.. >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 van 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. 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) >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) >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. (BTW: The preview will just start up your program, only I do not know how to do the mini-preview in win95, but because it has to be backwards compatible I suppose the only requirement for this would be that your program is a windows(32) program..) >P.S. Check out Francis Bussiere's EW32 DLL wrappers for Euphoria. This makes >windows programming possible and fun. Yes to all, this is the way windows programming and wrappers should be done..... (It's small, clean, safe, and can be updated when the program is already in wbinded form) Ralf
5. Re: Windows 95/NT Screen Saver in Euphoria
- Posted by Richard Farnsworth <MRF0044%ROUGH at BIZET.MITS.COM.AU> Jan 02, 1998
- 754 views
- Last edited Jan 03, 1998
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.
6. Re: Windows 95/NT Screen Saver in Euphoria
- Posted by "Graeme." <hmi at POWERUP.COM.AU> Jan 03, 1998
- 786 views
I've never actually tried to make one either, but my copy of VB Unleashed outlines it pretty much as Ralf has said; -Write a prog with some pretty graphics. -Add a routine to check the keyboard/mouse and terminate the prog on any input. -Rename the .exe to .scr