473,500 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

bho for ie6 tutorial in vb6

3 New Member
i want to write a bho for ie6 using vb6 which can save a particular image,which when right clicked and select an option,in webpage to local harddisk.
i serched a lot,but was nt able to see simple and step by step explaining tutorials,PLEASE GUIDE ME
Jan 23 '08 #1
4 3228
WinblowsME
58 New Member
Here's a start.

http://www.vbaexpress.com/forum/printthread.php?t=578

Expand|Select|Wrap|Line Numbers
  1. Sub Main()
  2.    Dim IE As Object, item As Variant
  3.    Dim web_site As String, path_name As String, file_name As String
  4.  
  5.    web_site = "http://www.yahoo.com"
  6.    path_name = "C:\Documents and Settings\WinblowsME\Desktop\Temp\"
  7.  
  8.    Set IE = CreateObject("InternetExplorer.Application")
  9.  
  10.    With IE
  11.       .Visible = True
  12.       .Navigate web_site
  13.    End With
  14.  
  15.    Call Wait(IE)
  16.  
  17.    For Each item In IE.Document.Images
  18.       file_name = Mid(item.src, InStrRev(item.src, "/") + 1)
  19.       Call Copy_HTTP_File(item.src, path_name, file_name)
  20.    Next
  21.  
  22.    IE.Quit
  23.    Set IE = Nothing
  24. End Sub
  25.  
  26. Private Sub Copy_HTTP_File(http_file As String, path_name As String, file_name As String)
  27.    Dim win_http As Object, downloaded_bytes() As Byte
  28.  
  29.    Set win_http = CreateObject("WinHttp.WinHttpRequest.5.1")
  30.  
  31.    win_http.Open "GET", http_file, False
  32.    win_http.Send
  33.  
  34.    Open path_name & file_name For Binary As #1
  35.       downloaded_bytes() = win_http.ResponseBody
  36.       Put #1, 1, downloaded_bytes()
  37.    Close
  38.  
  39.    Set win_http = Nothing
  40. End Sub
  41.  
  42. Private Sub Wait(IE As Object)
  43.    While IE.Busy
  44.       DoEvents
  45.    Wend
  46.  
  47.    While IE.Document.ReadyState <> "complete"
  48.       DoEvents
  49.    Wend
  50. End Sub
  51.  
Jan 23 '08 #2
Killer42
8,435 Recognized Expert Expert
What is a bho?

Anyway, isn't that save-image functionality already built into IE?
Jan 24 '08 #3
kadghar
1,295 Recognized Expert Top Contributor
What is a bho?

Anyway, isn't that save-image functionality already built into IE?
A browser helper object (those anoying things that get installed in the IE when you are sleepy and click an "accept" you shouldnt), DLLs like The Yahoo bar, now i've one of Dealio i dont know how it get there.

Yes, they pretty much have funcionalities already built into IE, but they seem to be popular. And it seems interesting the way they work and how to make them. We can make TSDN tool bar!!

I'll keep subscribed here
Jan 24 '08 #4
amyourpet
3 New Member
A browser helper object (those anoying things that get installed in the IE when you are sleepy and click an "accept" you shouldnt), DLLs like The Yahoo bar, now i've one of Dealio i dont know how it get there.

Yes, they pretty much have funcionalities already built into IE, but they seem to be popular. And it seems interesting the way they work and how to make them. We can make TSDN tool bar!!

I'll keep subscribed here
TSDN tool bar!!??
sorry,what is it realy?
Jan 24 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2901
by: Rhino | last post by:
Can anyone point me to a good free XSLT Tutorial online? I looked for some a few months ago and didn't find anything very good. I'm hoping some of the experts here can point me to a good XSLT...
15
4178
by: binnyva | last post by:
Hello Everyone, I have just compleated a JavaScript tutorial and publishing the draft(or the beta version, as I like to call it) for review. This is not open to public yet. The Tutorial is...
18
1923
by: Xah Lee | last post by:
i've started to read python tutorial recently. http://python.org/doc/2.3.4/tut/tut.html Here are some quick critique: quick example: If the input string is too long, they don't truncate it,...
0
1756
by: Joe Mayo | last post by:
I've recently updated the C# Tutorial at C# Station with a new addition, Lesson 17: Enums. The C# Tutorial may be found at http://www.csharp-station.com/Tutorial.aspx. Other updates include:...
10
3055
by: Safalra | last post by:
When a poster in a forum I frequent said they were beginning to learn HTML, I thought I should direct them to a good HTML tutorial so that they wouldn't start using <blink> and the like....
11
2899
by: Magnus Lycka | last post by:
While the official Python Tutorial has served its purpose well, keeping it up to date is hardly anyones top priority, and there are others who passionately create really good Python tutorials on...
7
2227
by: Turbo | last post by:
I have a written a detailed html tutorial here:- http://sandy007smarty.seo.iitm.ac.in/2006/09/26/html-tutorial/ I know there are a couple of html tutorials out there. But its a tutorial without...
2
2085
by: sara | last post by:
Hi All, I learned C++ long time ago and now I want to review all of its details in a short time like a week. I wonder if there is a good tutorial you know which I can read for this purpose....
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.