Seite 2 von 2

Verfasst: 13.01.2006 14:49
von Delle
Hab ich runtergeladen, aber das sind ja auch nur "leere" Prozeduren mit denen ich erstmal nichts anfangen kann...

Verfasst: 13.01.2006 14:57
von ts-soft

Code: Alles auswählen

AssociateFileEx (ext$,ext_description$,programm$,icon$,prgkey$,cmd_description$,cmd_key$)
ext$ is the extension (without the dot, for example "PB")
Ext_Description$ is the description of the file ("PureBasic Source")
programm$ is the programm with the full path ("c:\programme\japbe\japbe.exe")
Icon$ is the icon, when you want the second icon of file, add this with ",2" ("jaPBe.exe,2")
prgkey$ is the regestry-key of the applikation, normaly the filepart of programm$
cmd_description$ You can add a entry in the context-menu of the file. this is the description. ("open file with jaPBe")
cmd_key$ is the key, where the description is stored. Only for Win9X-System, but you should always add this ("open_file_with_jaPBe")
Unbedingt die Registry sichern, bevor Du es ausprobierst, ist nicht ungefährlich!!!

//Nachtrag:
Besser wäre es aber, wenn Du diese Einträge durch einen Installer, z.B. Inno-Setup oder NSI vornehmen läßt.

Verfasst: 13.01.2006 21:57
von Delle
Leider wird mit dieser Prozedur genau das gemacht, was ich eigentlich nicht wollte: Mein Tool wird mit .gif assoziiert ;) Sprich beim Doppelklick öffnet es mit meinem Tool... das mit dem Kontextmenü funktioniert, auch wenn keine Parameter übergeben werden.