Is it possible to detect when a download link is clicked in a browser and then run an application that can also get the file name of the file that is wanted to download?
Is it possible to detect when a download link is clicked in a browser and then run an application that can also get the file name of the file that is wanted to download?
Are you talking about a .NET WebBrowser control or just any old web browser application like IE or Firefox?
2007-2013
Why is my data not saved to my database? | Communicating between multiple forms | MSDN Data Walkthroughs
MSDN "How Do I?" Videos: VB | C#
VBForums Database Development FAQ
My CodeBank Submissions: VB (*NEW* Pausing Code) | C#
My Blog: Using Parameters in ADO.NET | Keyboard Events | Assemblies & Namespaces
Any old web browser application like IE or Firefox.
I know that there are applications like Getright and other pieces of software that detect when a file is clicked on to download. How do these applications work?
Those applications almost always install an add-on for the specific browser that they supports. Take the well-known Internet Download Manager application for instance, when you install the app, it'll ask you whether you want to integrate IDM to the browsers it found installed in your computers. If you answer yes, it will install the add-ons/plugins and those are what monitor/analyze the links and comunicate back to the main app.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
Well you could keep constantly refreshing the downloads folder![]()
@waddle1463:That will not work as I want to run my application before the file downloads, not after it has finished or has just started.Well you could keep constantly refreshing the downloads folder
@stanav: I understand how they work, I am wanting to know how to do the same thing myself, via VB.NET. So I would need to write my own plugin then? How/where can I get some sample code to do this sort of thing?
@stanav: Do you know how to do this in VB.net?
Maybe for IE you could but, for other browsers, you almost certainly wouldn't use VB.NET. For instance, while I could be wrong (I've never actually done it) I think that Firefox extensions are written in JavaScript. If you want to learn how to write an extension/add-in for a particular browser then you should check the documentation for that browser.
2007-2013
Why is my data not saved to my database? | Communicating between multiple forms | MSDN Data Walkthroughs
MSDN "How Do I?" Videos: VB | C#
VBForums Database Development FAQ
My CodeBank Submissions: VB (*NEW* Pausing Code) | C#
My Blog: Using Parameters in ADO.NET | Keyboard Events | Assemblies & Namespaces