Widget Request

ok, if any of you expert widget makers out there would be willing to make me a very specific widget, let me know.  What I'm looking for is this...

An age widget, which simply uses some kind of script to calculate someone's age based on me entering their date of birth or something like that, and displays just their name and age.  And the age would change automatically when the person has a birthday.  Is that possible?  I'm sure one of you amazing widgeteers out there can do this.  I've got alot of cousings and nephews and uncles who's age I can never remember.  And rather than having to look up birthdays all the time, then figure out their age from that, I'd like my computer to do it for me... :)  Ok, now here's the annoying part.  I want it to be pretty simple looking... just a basic white background, with a little shadowing and bevelling on the edges, but not much.  The width needs to be 138, (the width of all my other widgets I use) and the height of course would/could expand depending on how many names are on the list... And 8 pt Seogue for the font, in black.  And just a simple little button that brings up a dialog to add names and birthdates...

I know I'm being kind of annoying and specific, but hey, if I'm going to request a widget, I might as well take all the guess work out of it, right?  :)

Below is a mock up that I came up with...

Thanks so much ahead of time if anyone decides to give this a go...


38,659 views 54 replies
Reply #1 Top
In the works
Reply #2 Top
that one is REALLY tuff.. LOL

1. use DX.. make a new TEXT object:


'Called when the script is executed
Dim Person(10),Age(10)

Sub Object_OnScriptEnter
'setup a counter for the # of people
Cnt = 0

'increment the counter, Set the name, and birthday:
' Add more of these lines to add more people
Cnt = Cnt + 1 : Person(Cnt) = "RomanDA" : Age(Cnt) = "11/20/1964"
Cnt = Cnt + 1 : Person(Cnt) = "Alex" : Age(Cnt) = "9/5/1995"

object.text = "Current Ages: "& vbCRLF
For x = 1 To Cnt
'--- get the month difference between the dates
vMonths = DateDiff("m", Age(x), date)
'-- \ 12 = ' integer division (no decimals!!)
vYears = vMonths \ 12
object.text = object.text & Person(x) & ": " & vYears & vbCRLF
Next
End Sub

Thats it,
im sure there is a lot more to make it PERRRDY
Reply #3 Top
that's a different language to me, Rom... :)

thanks SirSmiley!
Reply #4 Top
that one is REALLY tuff.. LOL
Show off.   ;)
Reply #5 Top
its VBSCRIPT.. its built into DesktopX
Reply #6 Top
im sure there is a lot more to make it PERRRDY


No guarantees on that one. ;)

Edit: Here's picture. These aren't the graphics that will be used just got sick of looking at red/white masks.

You will be able to disable the tooltip & set font type, color, size in widget preferences.
To add a person you click on the name header, to toggle the list you click on the age header.
Still figuring out where to put the delete button/function. This should be done Friday
+2 Loading…
Reply #7 Top
that's fantastic! Thanks so much! Looking forward to it.
Reply #8 Top
SirSmiley you do impressive work!
Reply #9 Top
Now that is something that should find it's way to the gallery library, don't you think? ;) 
Reply #10 Top
well I'm hoping he doesn't make it just for me... I was assuming it would be uploaded here... :)
Reply #11 Top
Thanks guys. :D

It's definitely going in the gallery just like the Easy Button.

Have some more preferences coding and maybe some additional sort options for display. Right now it sorts by name but, will see about adding a sort by age and by birth date. Also, a reverse sort for those.

Actually this may have solved an issue with a CSV Parser object that got rejected a while back. And here I thought it was just Zubaz! :p

+1 Loading…
Reply #12 Top
Good karma on ya, SirS! Nice work. :CONGRAT:
Reply #13 Top
Nice work Adam! :CONGRAT:
Reply #14 Top
Update, warts and all.

The goal is to make this simple to skin by merely replacing the images.
All adjustments should be made automatically by the script

Features Implemented:
- Titles, List and Tooltip have separate text/font settings
- Simple ascending/descending sort by name or age. Click on column title.
- Height is resized automatically.
- Width is sizeable via a sizing control.
- Enable/Disable Tooltip option

To Do:
- Tooltip Date Format
- Add alarm option to script/widget preferences.
- Get regclean function to work directly from script.
- Skin graphics and icon

Screenshot Info:
First is sorted on name descending order
Second, is sorted on age descending.

+1 Loading…
Reply #15 Top
coming along nicely... :)
Reply #16 Top
Awesome project.  :CONGRAT: 
Reply #17 Top
cool :D
Reply #18 Top
Late Sunday, I breakd it. Not because of DX or the script persay but, cloning 200 text objects for 100 records brought it down.

Have switched over to three text columns, just complicates some other features.
Hopefully you will be able to enable/disable the age and/or birth date column. The birth date for sure.

Oh, it's sizable now and will be pageable as in goes up or down a page of names at a time.

Quick Pic:
+2 Loading…
Reply #19 Top
This is really cool.. love these kinds of things.
Reply #20 Top
you're getting 2 more karma points from me today, Sir... thanks so much for putting so much into this. You rock.

BTW, are those random people, or do you actually know 2 people over the age of 100. That would be pretty incredible.
Reply #21 Top
You're welcome. ;)

No, it's just a portion of a random list of famous people. Anyone I know who get's close to 100 does a stupid thing and starts listening to their doctor's.

Update: May 9/08

Just a little update to let you know it's still being worked on.
Took a break from major scripting to double check automatic sizing.
Should be easy to skin by just replacing images, no changes to the script.

Reply #22 Top
Another update.
To Do:
- Fix Selector & Highlight issues
- Option to use registry or settings file
- Skinning
- Other?

FYI this has more code than my reflector gadget. Hopefully that gives you an idea why it seems to be moving slowly.



Reply #23 Top
Looking great :D
Reply #24 Top
wow man... you do some cool stuff! putting me to shame.. LOL
Reply #25 Top
This is fascinating, the birth of a widget!Thank you for posting pictures of it SirSmiley. :CONGRAT: