My First Screen Saver

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
chi
Addict
Addict
Posts: 1028
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Re: My First Screen Saver

Post by chi »

J. Baker wrote:v1.2.0 now uses OpenGL. Same download link. ;)
Thank you very much!
Et cetera is my worst enemy
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

chi wrote:Thank you very much!
You're welcome!
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

I had to switch it back to DirectX for two reasons. Under OpenGL, the screen saver ran harder kicking up my CPU fan to a noisy level. Also, Avast wanted to keep blocking it from running. Not sure why but Avast doesn't seem to have a problem with the DirectX version.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

V1.2.1 fixed the calendar redrawing issue when the calendar changes at 12:00 am. If the screen saver is running at that time. This happened when I added the page curl to the calendar and forgot to test it. You can download the DirectX or OpenGL version now. See first post. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
ebs
Enthusiast
Enthusiast
Posts: 530
Joined: Fri Apr 25, 2003 11:08 pm

Re: My First Screen Saver

Post by ebs »

Thank you very much!

The office Christmas party is today.
I have your screensaver on the big TV and an Amazon Echo playing Christmas music - very festive!

Thanks again,
Eric
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

ebs wrote:Thank you very much!

The office Christmas party is today.
I have your screensaver on the big TV and an Amazon Echo playing Christmas music - very festive!

Thanks again,
Eric
WOW! That's awesome! Hope you have a great party! :D
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

Version 1.3.0 is DPI aware for both the installer and screen saver. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: My First Screen Saver

Post by BarryG »

Hi J.Baker!

I tried making my own screensaver with just a fullscreen borderless window and the GetLastInputInfo_() API, running it just from my app folder, but if the Windows calendar is shown (when you click the clock) then my window doesn't cover it. StickyWindow is #True. But your screensaver covers the calendar and other topmost windows, so how did you do that? Surely you didn't parse them all and remove their topmost flag temporarily?

BTW, there's a small text bug with v1.3.0 of your screensaver: the "y" in "May" is cropped.

Image
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

Sorry for the delay and thanks for reporting the bug. I will have to fix that soon.

Here's what is in my code. Let me know if it works for you. I just kind of threw it in there at the time and it seem to work.

Code: Select all

stick = OpenScreen(DesktopWidth(0), DesktopHeight(0), DesktopDepth(0), "", #PB_Screen_SmartSynchronization, DesktopFrequency(0))
StickyWindow(stick, 1)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: My First Screen Saver

Post by BarryG »

So you're opening a Screen instead of a Window? That's likely why it's not working for me. I'll try that approach. Thanks!
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

No problem. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: My First Screen Saver

Post by BarryG »

In your code above you used StickyWindow() with a screen, but when I try I get an error that no window exists. Can you advise?
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

BarryG wrote:In your code above you used StickyWindow() with a screen, but when I try I get an error that no window exists. Can you advise?
I'm not sure. All I know is it worked here and when I did it, it prevented mail and Avast popups from taking over the screen saver. Will have to think on that.

EDIT: I do have a settings/about window in my code. Add a window to your code but don't have it open and see if that helps. Maybe PureBasic is checking to see if there are any windows at all.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

Version 1.4.0 is now available. Both the DirectX and OpenGL versions are in the zip file.

What's new...
  1. Fixed the calendar bug. Months with a "y" or a "g" would overlap the numerical date.
  2. Altered the snow particle procedure a bit.
  3. The installer now checks itself (file size) at startup to see if it has been altered or not. Basic anti-virus protection.
  4. Updated the installer icon.
  5. Created a new screen saver icon.
  6. Adjusted the screen saver preview window in Windows Settings.
Download PoseMotion Christmas
Last edited by J. Baker on Fri Sep 04, 2020 3:44 pm, edited 1 time in total.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: My First Screen Saver

Post by J. Baker »

Version 1.4.1 is now available. I fixed the month and day of the week not updating at midnight. Not sure how I missed that. :oops:

Download PoseMotion Christmas
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
Post Reply