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
4 3228
Here's a start. http://www.vbaexpress.com/forum/printthread.php?t=578 - Sub Main()
-
Dim IE As Object, item As Variant
-
Dim web_site As String, path_name As String, file_name As String
-
-
web_site = "http://www.yahoo.com"
-
path_name = "C:\Documents and Settings\WinblowsME\Desktop\Temp\"
-
-
Set IE = CreateObject("InternetExplorer.Application")
-
-
With IE
-
.Visible = True
-
.Navigate web_site
-
End With
-
-
Call Wait(IE)
-
-
For Each item In IE.Document.Images
-
file_name = Mid(item.src, InStrRev(item.src, "/") + 1)
-
Call Copy_HTTP_File(item.src, path_name, file_name)
-
Next
-
-
IE.Quit
-
Set IE = Nothing
-
End Sub
-
-
Private Sub Copy_HTTP_File(http_file As String, path_name As String, file_name As String)
-
Dim win_http As Object, downloaded_bytes() As Byte
-
-
Set win_http = CreateObject("WinHttp.WinHttpRequest.5.1")
-
-
win_http.Open "GET", http_file, False
-
win_http.Send
-
-
Open path_name & file_name For Binary As #1
-
downloaded_bytes() = win_http.ResponseBody
-
Put #1, 1, downloaded_bytes()
-
Close
-
-
Set win_http = Nothing
-
End Sub
-
-
Private Sub Wait(IE As Object)
-
While IE.Busy
-
DoEvents
-
Wend
-
-
While IE.Document.ReadyState <> "complete"
-
DoEvents
-
Wend
-
End Sub
-
What is a bho?
Anyway, isn't that save-image functionality already built into IE?
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
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?
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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...
|
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,...
|
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:...
|
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....
| |
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...
|
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...
|
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....
|
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,...
|
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...
|
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,...
| |
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |