desktopX: how to show NBA widget?

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
6,688 views 11 replies
Reply #1 Top
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
Reply #2 Top
The best way is RomanDA's SportStrip
A portion of this sale goes to charity too!   :CONGRAT: 
Reply #4 Top
and how does that "easy" way work? i dont have a clue how to do what you say unfortunately
Reply #5 Top
and how does that "easy" way work? i dont have a clue how to do what you say unfortunately
End of quote
Did you read the tutorial?

does sportstrip work on vista?
End of quote
It should.  You can ask in the comments and RomanDA will be alerted.
Reply #6 Top
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!).

Reply #7 Top
Jeez . .  sViz . . . you could do so much better in your sleep.  You know it, I know it.
(But thanks)
Reply #8 Top
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
Reply #9 Top
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?
Reply #10 Top
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*
Reply #11 Top
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