Adding Image to Dialog from Internet

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Adding Image to Dialog from Internet

Post by kpassaur » Wed Nov 01, 2006 9:16 pm

I was wondering if it is possible to have the backgound image for a Dialog Box pulled from an ftp site or http site without downloading and saving it to the local PC.


Don't you all laugh, but I had a brainstorm. Image distributing a utility for free that is useful and it randomly pulls advertisements from a remote server. It would be the same way banner Ads work only you get a useful utility written with Macro Scheduler.

Any pointers? Is it possible?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 01, 2006 9:54 pm

It is impossible to get something from the web without downloading it first! Even web browsers download images to a temporary location on the drive before displaying them.

But you can make the entire process transparent, yes. Use HTTPRequest to get the image to a temporary file and then set the image object on the dialog to that file. On terminate delete the temporary file(s). Pretty simple.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Getting Picture from Web

Post by kpassaur » Wed Nov 01, 2006 10:09 pm

Thanks, I can handle doing it now - just needed some direction as always.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts