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?
Possible to give a non-exe file a unique icon?
-
- Addict
- Posts: 1264
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
-
- Enthusiast
- Posts: 125
- Joined: Sat Jun 17, 2006 3:15 pm
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
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
-
- Addict
- Posts: 1264
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
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!)
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!)