473,563 Members | 2,762 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,PLEAS E GUIDE ME
Jan 23 '08 #1
4 3229
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
2911
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 tutorial..... -- Rhino --- rhino1 AT sympatico DOT ca "There are two ways of constructing a software design. One way is to make it
15
4194
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 avaliable at... http://www.geocities.com/binnyva/code/javascript/advanced_tutorial/ If any of you could spare the time, please have a look at my...
18
1932
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, but return it unchanged; this will mess up your column lay-out but that's usually better than the alternative, which would be lying about a value....
0
1768
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: 1. Downloadable source code. 2. All example programs run on-line as NTD apps. 3. A support forum for discussing the Tutorial.
10
3067
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. Remembering that this group has discussed HTML tutorials several times in the past, I searched the Google Groups archives, but all I can find are tutorials...
11
2911
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 the web. I think 'A Byte of Python' by Swaroop C H is a good beginners tutorial, and 'Dive Into Python' by Mark Pilgrim is a good tutorial for...
7
2239
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 links!! Everything in one page. Please leave a comment if you like it.
2
2097
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. Thanks a lot.
0
7664
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
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 we have to send another system
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.