Autor Beitrag
Supernova
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 108

WinXP
D7 Prof
BeitragVerfasst: Do 17.11.05 15:18 
Hi,

ich habe mir mal so überlegt nach einiger Informationsbeschaffung einen kleinen DL-Manager zu Programmieren...

So alles funktioniert: - Ich gebe den Pfad der Datei an... Downloading...

So nun möchte ich z.b wenn ich im internet-explorer auf *Download This File* klicke dass dann der Link abgefangen und in Mein Programm eingetragen wird... Hm, nur leider hab ich keinen Peil wie das gehen soll...

Grüße
Supernova

_________________
Input - Output => Ganz Kaputt
*** MFG Supernova ***
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Do 17.11.05 15:23 
Beim IE musst du ein Plugin(sog. Browser Helper Objects) programmieren und für FF einen Script(oder du benutzt den DownloadWith Script)

Dann wertest du wie du bereits sagtest einfach die Aufrufparameter deiner .EXE aus.
Supernova Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 108

WinXP
D7 Prof
BeitragVerfasst: Do 17.11.05 15:30 
Hm, das ist nicht gut, mein Antivieren Programm zeigt mir aber an wenn ein Download beginnt wird ein registry eintrag geändert... hmm, werd mal gucken müsse.

IE Plugin - Kennt da jemand Tutorials dafür oder so...
FF Plugin - *räusper*

Ich glaub hiermit ist das Projekt beenndeet... :cry::cry::cry:

Supernova

_________________
Input - Output => Ganz Kaputt
*** MFG Supernova ***
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Do 17.11.05 15:43 
Nana das Problem haben alle DLMs und meistens können sie das nicht sauber...

www.euromind.com/iedelphi/ie5tools/bho.htm
groups.yahoo.com/gro...sagesearch?query=BHO

Aber Suche bei Google BROWSER HELPER OBJECT BHO DELPHI sollte man schon bedienen können, wenn man das durchziehen will ;)
Supernova Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 108

WinXP
D7 Prof
BeitragVerfasst: Do 17.11.05 15:51 
Zitat:

C. Download Managers

Starting with IE 5.5 a new event OnFileDownload was added to DWebbrowserEvents2. It makes it even easier to let your BHO decide the action, when a user wants to start downloading of a file. The event is called just before showing the Download-dialog in IE. Returning Cancel=True will terminate the download-process and prevent the dialog from being showed. You can now let your download-manager take over the downloading. (For some strange reasons OnFileDownload is called when a new instance of IE is started. You need to handle this, otherwise your application will freeze.)

In older versions of IE you will need to check for the file-extensions in OnBeforeNavigate. If it is "*.exe", "*.zip" etc. you can cancel the navigation and start your download-manager.



Enjoy!


:wink: Naja wir werden sehen... Trotzdem Danke ^^

_________________
Input - Output => Ganz Kaputt
*** MFG Supernova ***