Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Phoenix Clock
#1
You know I had to make this eventually. Big Grin 
The picture below doesn't give it justice though because I added a glowing circle that moves in a spiral around the clock. You can see one frame of it in the picture. It also chimes the hour every hour and you can hear it anytime if you press the space bar. Thanks to Dav for that chime code awhile back.
In the zip file there's the .bas file and the .png picture file as the background for the clock. I resized it to fit the 800 x 600. 
Feel free of course to change the code to how you like it and also use the clock code for your own clocks.


Attached Files Thumbnail(s)
   

.zip   Clock QB64Phoenix.zip (Size: 676.16 KB / Downloads: 160)
Reply
#2
Some of the code is a bit (read "a long way") above me, but I encountered an error in line 14 (invalid handle. May be something simple?
Reply
#3
encountered an error in line 14 (invalid handle. May be something simple?

just make sure in the source code that you change the code to

i& = _LoadImage("C:\Users\wadmi\Desktop\mame zips\Clock QB64Phoenix\Phoenix64clock.png", 32)  

to where the image file is located

*** Note ***
this is where the file is located on my computer ,try changing it to suit yours.

"C:\Users\wadmi\Desktop\mame zips\Clock QB64Phoenix\Phoenix64clock.png"

***************************************

and then run the script

it works fine
Reply
#4
You can also just put both the .bas and the .png picture file in the same directory and they should work as my code there reads. I made a separate directory for it myself inside my folder of QB64 programs. Also make sure "Output .EXE To Source Folder" has a dot next to it (check marked), it's under "Run".
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Vacuum Flourescent Display Clock With Alarm SierraKen 5 1,196 06-07-2025, 11:02 PM
Last Post: SierraKen
  Speaking and Chiming Analog Clock SierraKen 0 614 08-13-2024, 10:13 PM
Last Post: SierraKen
  Matrix Clock by harixx (from 6-16-2010) SMcNeill 6 1,712 11-14-2023, 04:26 AM
Last Post: TerryRitchie
  Phoenix rising... Dav 13 2,859 07-10-2023, 11:40 PM
Last Post: Dav
  AurelEdit Phoenix Edition aurel 44 9,533 10-18-2022, 07:17 PM
Last Post: aurel

Forum Jump:


Users browsing this thread: 1 Guest(s)