After renaming your .scr file don't forget to copy it to c:\windows\system32
or it won't show up in the screen saver list
or it won't show up in the screen saver list

compiling QB64PE programs into Windows screensaver SCR files?
|
After renaming your .scr file don't forget to copy it to c:\windows\system32
or it won't show up in the screen saver list ![]()
04-16-2025, 07:54 AM
That's what INSTALL does for you.
04-17-2025, 06:01 PM
Thanks.
I figured out the mouse problem... For a screensaver, we want it to quit if the user moves the mouse. However I was having a problem where it would quit immediately even if the mouse wasn't touched. What I found was, we need to save the initial mouse coordinates AFTER the SCREEN _NewImage. But also, we need to give it a couple seconds to initialize, so we put in a _Delay 2 for good measure. Here is one of @bplus's cooler eye candy proggies, with the mouse check added, it makes a great screensaver: Code: (Select All) ' Don't Attempt to Adjust Your Screen by bplus
04-17-2025, 06:05 PM
(04-17-2025, 06:01 PM)madscijr Wrote: What I found was, we need to save the initial mouse coordinates AFTER the SCREEN _NewImage. Go back and check my example for you: https://qb64phoenix.com/forum/showthread...8#pid33538 Screen _NewImage(320, 240, 32) _FullScreen _Delay .5 'give the screen time to initialize fully so we can associate mouse input with it and such
04-23-2025, 07:39 PM
Gotcha. I seem to remember _Delay .5 not being long enough but I can try it again.
Thanks |
« Next Oldest | Next Newest »
|