desktopX: how to show NBA widget?

Saturday, December 15, 2007 by aspa23 | Discussion: Object Desktop

hello

i wanted to creat some sort of object or widget n my desktop that shows me the nba scorebord.

on nba.com, the got a widget for this. they got buttons to integrate it into myspace or facebook or whatever and they tell you to copy the following code:

<embed type=application/x-shockwave-flash width=198 height=444 src=http://widgets.clearspring.com/o/45cc95d4350510ee/474355b8c882a6f0/45cc95d4350510ee/92d6dbcd/ wmode=transparent allowscriptaccess=always allownetworking=all id=45cc95d4350510ee> </embed>


does anybody know how i can get that widget to be displayed on my desktop? that would be really cool!

thanks in advace
ZubaZ
Reply #1 Saturday, December 15, 2007 2:14 PM
The easist way would be to create a DX object that used the WebBrowser activeX control to load it up.  https://www.stardock.com/products/desktopx/documentation/Tutorials/AccessingInternet.asp
ZubaZ
Reply #2 Saturday, December 15, 2007 2:17 PM
The best way is RomanDA's SportStrip
A portion of this sale goes to charity too!    
aspa23
Reply #3 Saturday, December 15, 2007 3:01 PM
does sportstrip work on vista?
aspa23
Reply #4 Saturday, December 15, 2007 3:36 PM
and how does that "easy" way work? i dont have a clue how to do what you say unfortunately
ZubaZ
Reply #5 Saturday, December 15, 2007 3:46 PM
and how does that "easy" way work? i dont have a clue how to do what you say unfortunately
Did you read the tutorial?

does sportstrip work on vista?
It should.  You can ask in the comments and RomanDA will be alerted.
sViz
Reply #6 Saturday, December 15, 2007 4:15 PM
Tsk, tsk, Zubaz, are we forgetting about a little widget we made not too long ago?   

ZOOMCAM is a very good example widget of the 'easy way' (and don't let Zu tell you any different!).

ZubaZ
Reply #7 Saturday, December 15, 2007 4:22 PM
Jeez . .  sViz . . . you could do so much better in your sleep.  You know it, I know it.
(But thanks)
aspa23
Reply #8 Saturday, December 15, 2007 4:54 PM
yeah i read it, and i tried to figure out how i could do it...

and i found out, that i basically just need to show this thing on my desk:

http://www.nba.com/media/nba/scoreboard_2007.swf

i made a script using activeX-> microsoft web browser -> but that gives me an error "invalid character"

'Called when the script is executed
Sub Object_OnScriptEnter

control.Navigate2"http://www.nba.com/media/nba/scoreboard_2007.swf"

End Sub

'Called when the script is terminated
Sub Object_OnScriptExit

End Sub
'Fired when the document being navigated to reaches ReadyState_Complete.
Sub Control_DocumentComplete(pDisp, URL)

End Sub

'Fired when application is quiting.
Sub Control_OnQuit()

End Sub
aspa23
Reply #9 Saturday, December 15, 2007 7:07 PM
hm well it seems the problem is the "2007" in that url...

so i tried to convert the whole url to ascii...but that wont work either...how do i have to do it?
sViz
Reply #10 Sunday, December 16, 2007 1:54 PM
aspa,

Start with Notepad.
Paste in the embed code.
Save as an htm file ("nba.htm" or whatever).

Open DX and create the activeX Web Browser object.
In the summary tab click on custom files.
Click add to browse for and add the htm file you just created.


Put this script into the object:


'Called when the script is executed
Sub Object_OnScriptEnter
On Error Resume Next
Set fso = CreateObject("Scripting.FileSystemObject")
ofile = Object.Directory & "nba.htm" '--original file location
cfile = DesktopX.ExecutableDirectory & "nba.htm"'--copied file location
'Copy original file to DesktopX folder
If Not fso.fileexists(cfile) Then
fso.copyfile ofile, cfile, True
End If
Control.Navigate2 cfile
End Sub


Be sure to adjust the width/height of the object to accomodate the content.


This worked for almost every other NBA widget they had on the site, but the one you want in particular does not seem to be working.
Some of the widgets returned errors but they still worked after clearing the pop up. Seems to be a site issue, to me. *shrugs*
aspa23
Reply #11 Sunday, December 16, 2007 3:07 PM
thanks a lot, that works perfectly

and yes, it really seems to be a site issue that the one widget doesnt show...well, i'll just wait if they fix it

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01