The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => Miscellaneous Projects => Windows Projects => Topic started by: Darrel on May 02, 2009, 12:13:56 AM

Title: Astro
Post by: Darrel on May 02, 2009, 12:13:56 AM
Improved MoonPhase.

You can go to Astronomical Applications Department (http://aa.usno.navy.mil/data/docs/RS_OneYear.php) and enter your location to find your longitude and latitude.

Regards,

Darrel
Title: Re: Astro
Post by: Mark Jones on May 02, 2009, 02:03:31 AM
Interesting Darrel, I had a play with the color controls (okay I went nuts) and came up with this:

(http://img510.imageshack.us/img510/8408/astro.png)

Posted image so others could see what this is. Tested in Sandboxie because it extracted an executable. Nice work, is the installer custom?
Title: Re: Astro
Post by: Darrel on May 02, 2009, 03:02:01 AM
Hi Mark,

Yes I wrote the installer myself. On MoonPhase I wrote a seperate program to update the desktop icon. Since the icon is located in an executable windows updated the icon each time the executable was rewritten. Now I just have 1 program and since it cant rewrite itself, it rewrites the icon at each scheduled update and windows not update the icon automatically, so I had to force a flush of shelliconcache, thus the temporary screen telling you the desktop link is being updated (to hide all the screen redrawing of icons - which is quite messy with auto arrange on). The globe is rotated so the given longitude and latitude is centered on the screen. If you hover the mouse over one of the links it will display the location and date along with sunrise/sunset and moonrise/moonset. All the drawing is self written except for the text (gdiplus). Will eventually handle the text drawing myself too.

Regards,

Darrel
Title: Re: Astro
Post by: Darrel on May 03, 2009, 10:15:15 PM
I forgot to change a global variable to a local variable, which causes a problem with your HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics , Shell Icon Size value. This value is typically 32 or 48. AstroInstall will install the corrected program. AstroFix will install the corrected program and fix your registry.

Sorry for any inconvenience.

Darrel
Title: Re: Astro
Post by: BlackVortex on May 04, 2009, 06:35:07 AM
Hey, seems Mark Jones was right to run it under Sandboxie   :cheekygreen:
Title: Re: Astro
Post by: Darrel on May 04, 2009, 02:20:26 PM
The only effect on my computer was the Astro link on my desktop not updating. As far as shutting down and rebooting there were no ill effects.
Title: Re: Astro
Post by: Darrel on May 15, 2009, 10:08:14 PM
Fixed a possible divide by zero situation (less than 1 in a trillion probability).

If you already have Astro run AstroFix. Otherwise AstroInstall is corrected too.

Regards,

Darrel
Title: Re: Astro
Post by: travism on May 17, 2009, 12:57:33 PM
Wow! This program is awesome. Great job!  :clap: