LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

chasing "Demons of stupidity"...

Hi,

I'm trying to download an image from Dilbert.com website. Until last week this used to work smoothly using "datasocket read". Now the website has changed completely (IMHO to worse...) and DatasocketRead just times out without reading any content from dilbert.comSmiley Sad

So I set up using IExplorer via ActiveX control. My problems are:
- Is there a way to get the image data directly from IExplorer? (Some method to read the website content?)
- Can I control where IExplorer will save the picture?
- Does IExplorer anything, when using OLECMDID_Save instead of OLECMDID_SaveAs? I don't want to annoy the user (me...) with a "Save as" dialog every morningSmiley Wink

Attachment works for me, but keeps asking where to save the picture...

Edited: attached missing subvi...


Message Edited by GerdW on 04-23-2008 01:35 PM
Best regards,
GerdW


using LV2020 on Win8.1+cRIO
Download All
0 Kudos
Message 1 of 21
(2,964 Views)
I was just reading the other day that the Dilbert website was updated, and a lot of people are up in arms over the new format.  Apparently they moved to a flash based site.......
0 Kudos
Message 2 of 21
(2,959 Views)
It's become too commercialized.. 😞
0 Kudos
Message 3 of 21
(2,944 Views)
Hi Joe,

that's why I have this little exe fetching different Dilberts from the web onto my harddrive every morning Smiley Wink
Best regards,
GerdW


using LV2020 on Win8.1+cRIO
Message 4 of 21
(2,939 Views)
Very good idea. 
I added a tag and will try it out from my home PC. 🙂
I do not have LV installed here, so I will look at the code later.
 
Is the issue doing a save to avoid user interaction?  If so, can you rename automatically after download is complete?
 
RayR
 
0 Kudos
Message 5 of 21
(2,932 Views)
Hi Ray,

at the moment the attached vi exits and leaves IExplorer open with an opened "save as" dialog... So no waiting for saved files, no renaming of saved filesSmiley Sad
That's why I ask for methods to let IExplorer save to a known destination or to get the image data transferred to LabView!


Message Edited by GerdW on 04-23-2008 02:44 PM
Best regards,
GerdW


using LV2020 on Win8.1+cRIO
0 Kudos
Message 6 of 21
(2,913 Views)
Hi GerdW,
i found a solution for you, but only if you allow temporary internet files. Smiley Happy
Change the folder to your directory and it should work.
 
Mike
Message 7 of 21
(2,809 Views)
Hi Mike,

very nice! Just added a FileCopy operation to get the gif file at the usual locationSmiley Wink

Thanks!
Best regards,
GerdW


using LV2020 on Win8.1+cRIO
0 Kudos
Message 8 of 21
(2,780 Views)
Hi Mike,

thanks again for your help.

Attached is the actual version. I replaced the file searching part as searching the newest folder doesn't work for me. I also added code to allow for different users.

It's still not perfect, but my Dilbert fetcher does it's job againSmiley Very Happy
Best regards,
GerdW


using LV2020 on Win8.1+cRIO
Message 9 of 21
(2,738 Views)

Hi GerdW,

great tool, thanks for sharing it. Smiley Happy

Mike

0 Kudos
Message 10 of 21
(2,733 Views)