Trouble with Online images

What can I do?

Ok, so, I'm flipping thru my VB6 for Dummies book, and I am trying to figure out how to create an object that opens an online image. What I want to do is create a small icon that when I click on it, it gives a 5 day forecast from the local tv station. (http://images.ibsys.com/ral/images/weather/auto/5day_400x300.jpg).

Is there a way to create a small box in DesktopX that opens and just shows the picture?

(flips thru the Dummies manual again)..I must be missing something..

2,270 views 5 replies
Reply #1 Top
Does anyone know how to create a small script to show an online image in Desktop X?

I'm still new to Visual Basic...any help would be appreciated...
Reply #2 Top
I won't claim to know the first thing about VB Script. I have read some, but still know pretty much nothing. I snagged Frogboy's Political Meter widget because I know all that did was snag an image file from the internet and display it in a frame. Go download that, import it as an object and disect the script. Here is the script for you, and when I put in your URL it worked, showing the forecast image, it just cut it off to fit the dimensions of the widget Frogboy made. So you should be able to make a frame, set it the size you want, and then put an object in it with the following script and it should work:

'Called when the script is executed
Sub Object_OnScriptEnter
Object.Picture = "http://images.ibsys.com/ral/images/weather/auto/5day_400x300.jpg"
Object.SetTimer 40,60000000

End Sub

Sub Object_OnTimer40
Object.Picture = "http://images.ibsys.com/ral/images/weather/auto/5day_400x300.jpg"
End Sub

'Called when the script is terminated
Sub Object_OnScriptExit
Object.KillTimer 40
End Sub

NOTE: The above script is Frogboy's, not mine. If he would like it removed I will gladly do so, or one of the admins here can as well.

Hope that helps.
Reply #3 Top
Sorry about the link things. The board did that when I put the whole URL in.
Reply #4 Top
Thanks a lot!

I'm trying to create a simple desktopX toolbar for my wife that can give her the local weather information. 5 day - radar pic, etc. I went and got a vb6 for dummies book but all it told was how to use files you already have on your hard drive.

This will help a whole lot. Once again, thanks!
Reply #5 Top
Hope it works for you. I have actually been wanting to make a similar widget, so it helped me too.