Page 1 of 1

Possible to give a non-exe file a unique icon?

Posted: Sun Jan 04, 2009 10:42 pm
by Seymour Clufley
I don't know whether this question is really dumb or not.

I'm making a program to save a webpage to the MHT format. A few hours ago it occurred to me it'd be really cool if the resulting file had an icon based on the website's favicon ('the website' being the site where the page was saved from).

Is this just pie in the sky or would there be a way?

Posted: Sun Jan 04, 2009 11:05 pm
by ..::Origin::..
Hi Seymour,

I'm assuming you're operating on a windows system of some sort. If so, you are able to achieve this with the use of registry keys. I suggest you have a search with http://www.google.com for a "howto" method.

Regards,
Origin

Posted: Sun Jan 04, 2009 11:38 pm
by SFSxOI
It's not a dumb question, but you know that windows internet explorer and other browsers will already save a web page to MHTML format don't you?

Posted: Mon Jan 05, 2009 12:17 am
by Seymour Clufley
Origin, if the way to do it involves registry keys, does that mean that the file would only appear with the unique icon on one computer?


SFSx01: Yes, I know IE can save to MHTML. In fact a while ago NetMaestro showed me how to programatically "hook" IE and get it to perform the task. But for various reasons I want to code the task myself in PB.

One reason is that hooking IE will fail if IE is not running in English. This is because the method involves selecting a combobox item containing the text "Web Archive, single file (*.mht)".

Another reason is, if it's done in PB it will be a step towards a cross-platform solution. (How I wish the PB team would implement WebKit for the webgadget!)