General :  K-Meleon Forum
General discussion about K-Meleon. 
Pages: Previous123
Current Page: 3 of 3
Re: 'shortcut on desktop' in right-click menu?
Posted by: alain aupeix chez wanadoo fr
Date: September 30, 2005 11:51PM

For K-Meleon, the error is here:

[HKEY_CURRENT_USER\Software\K-Meleon\K-Meleon\General]
"InstallDir"="D:\\Program Files\\K-Meleon"

It ought to be :

"InstallDir"="D:\Program Files\K-Meleon"

Neither scenario really describes my situation, but I haven't run setdefault prior or after this report, but when I first installed KM WB several months I chose the option to make it the default browser...

I think it's a WB setup bug !!!

Correct it and report the result.

Guenter, can you confirm that WB setup puts \\ instead of \ in K-Meleon's installdir?

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: Midas
Date: October 01, 2005 07:36PM

Sorry for the delay, but I am only doing workday mornings and I only casually checked my workstation today. Yes, I have both the keys you mention, as can be checked in the following registry export:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\K-Meleon.HTML\shell\open\command]
@="\"D:\\Program Files\\K-Meleon\\K-Meleon.exe\"'_'\"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Outlook'_'Express\shell\open\command]
@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
00,65,00,73,00,25,00,5c,00,4f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,00,20,00,\
45,00,78,00,70,00,72,00,65,00,73,00,73,00,5c,00,6d,00,73,00,69,00,6d,00,6e,\
00,2e,00,65,00,78,00,65,00,22,00,00,00

So I am confirming them (I also have the other keys I posted previously).

> For K-Meleon, the error is here:
>
> [HKEY_CURRENT_USER\Software\K-Meleon\K-Meleon\General]
> "InstallDir"="D:\\Program Files\\K-Meleon"
>
> It ought to be :
>
> "InstallDir"="D:\Program Files\K-Meleon"

Sorry. I looked a that key and it IS as you recomend (as is the first key above in this post); it is just the export that follows the escaped slashes (\\) convention for the registry, as a single one could break the line on import...

I will be away from my workstation until monday morning. See you then.

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: alain aupeix chez wanadoo fr
Date: October 01, 2005 10:33PM

Does the Outlook Express key is like you gave it or is-it due to the export ?

I should prefer :

"C:\Program Files\Outlook Express\Msimn.exe"_"%1"

For K-Meleon, it was a bug, the path was cleared when using the ini file.

A+

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: Midas
Date: October 03, 2005 06:09PM

The default key:
"My'_'Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Outlook'_'Express\shell\open\command"
has this textual value:
"%ProgramFiles%\Outlook Express\msimn.exe"

It got converted to hex on export, I guess...

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: alain aupeix at wanadoo fr
Date: October 03, 2005 07:46PM

ok, I'll prefer.

I have continued to improve this tool, and it has now this features:

Possibility to change program and index of the icon (for mailer and browser)
Possibility to let the system choose the icon (kko remark) (for mailer and/or browser and/or other files)
Possibility to change the default title (for mailer and browser)

Possibility to change modify the extensions list
Possibility to normalize the url files already created (kko remark)
Possibility to create shortcuts for IE (not yet implemented)

I'll just add the %ProgramFiles% replacement and it would be ok

A+

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: kko
Date: October 06, 2005 10:08PM

I'm back again, fellows. I've been cut off since last friday (I had no DSL connection).

Finally tested your little tool, Alain. (The version you made last week to work with 2k/XP, I don't have the new one yet.) Works fine! Some observations:

1) There is no need to place vdsrun30.dll in the windows directory. Simply put it into the same directory as WebShortcut.exe (i.e. place both files into the K-Meleon "tools" directory).

2) In your macros, you can replace "getpref(STRING, $dir)" by "$path" ($path is defined the line below $dir).


When K-Meleon is (properly) set up as your default browser (i.e. is associated with the http protocol), the Windows OS will automatically display such a link with the K-Meleon icon. A mailto-link will automatically be displayed with the icon of your default mail client. In general, Windows will automatically display ANY shortcut (whether *.url or *.lnk) with the correct icon.

No, for URL, I always have IE icon, with w98se, w2k and XP Pro.

Sorry Alain, you are right. The official SetDefault.exe (yours, too?) does indeed NOT perform a correct icon setup! The following is written to the registry:

[HKEY_CLASSES_ROOT\K-Meleon.HTML\DefaultIcon]
@="C:\\Program Files\\K-Meleon\\K-Meleon.exe,1"

[HKEY_CLASSES_ROOT\http\DefaultIcon]
@=""

[HKEY_CLASSES_ROOT\https\DefaultIcon]
@=""

You see, what's wrong! The default icon location for protocols http and https is set to an empty string instead to "...\K-Meleon.exe,1" (I forgot, that I had corrected this). Therefore, Internet Shortcuts to http(s) addresses are shown with the default icon of *.url files. And that is an IE icon. I consider this to be a cosmetic bug. Perhaps you can update your version of SetDefault.exe in regard to this.


Following some further notes, that might be helpfull to you, Alain:

---------------------------------------
Windows Registry & Default Applications
---------------------------------------


Structure of the Windows Registry
---------------------------------

There are three keys in the Windows Registry, that store class data (data related to file types and protocols):
- HKEY_CLASSES_ROOT
- HKEY_CURRENT_USER\Software\Classes
- HKEY_LOCAL_MACHINE\Software\Classes

The settings in HKEY_LOCAL_MACHINE (HKLM) affect all users. Any user can read from HKLM. But (on WinNT) only privileged users can write to HKLM.
The settings in HKEY_CURRENT_USER (HKCU) only affect the currently logged on user. Any user can read from and write to HKCU, because any user has his own HKCU key.
HKEY_CLASSES_ROOT (HKCR) is a virtual key. HKCR is a copy of HKLM\Software\Classes overwritten with HKCU\Software\Classes. Thus, HKCR stores all the data that is valid for the current user.

In consequence, an application should allways read class data from HKEY_CLASSES_ROOT. Writing class data to the Windows Registry however, is much more complicated. Since HKCR is a virtual key, a write request to HKCR will be redirected to either HKCU\Software\Classes or HKLM\Software\Classes. Which of both it actually is will depend on the circumstances and is nearly unpredictable (at least to me ;). So, I myself avoid writing to HKEY_CLASSES_ROOT. Explicitely write to HKCU\Software\Classes (this will allways work, but will only affect the current user) or to HKLM\Software\Classes (this will affect all users, but will only work, when the current user is privileged).


Default Browser (and Default Applications in general)
-----------------------------------------------------

The meaning of the term "Default Browser" is very fuzzy. Sometimes, the default browser is referred to as default application for HTML files (I would call this the "Default HTML Viewer", however). And sometimes, it is referred to as default application for the http: (and httpssmiling smiley protocol. But of course, these two (three) settings can be configured individually. You can associate *.htm(l) files with MSIE, http: protocol with Opera and https: protocol with K-Meleon (doesn't really make sense though, but just to give an example). Now make your choice what you call the default browser! IMO, there is no default browser. There are only default applications for specific file types or protocols.

These default applications (and the corresponding default icons) can be determined like this:

[HKEY_CLASSES_ROOT\.<FileExtension>]
@="<DocumentType>"

[HKEY_CLASSES_ROOT\<DocumentType>\DefaultIcon]
@="<DefaultIconLocation>"

[HKEY_CLASSES_ROOT\<DocumentType>\shell]
@="<DefaultAction>"
; IF "<DefaultAction>" == "" THEN
[HKEY_CLASSES_ROOT\<DocumentType>\shell\open\command]
; ELSE
[HKEY_CLASSES_ROOT\<DocumentType>\shell\<DefaultAction>\command]
; ENDIF
@="<DefaultCommandLine>"


[HKEY_CLASSES_ROOT\<Protocol>\DefaultIcon]
@="<DefaultIconLocation>"

[HKEY_CLASSES_ROOT\<Protocol>\shell\open\command]
@="<DefaultCommandLine>"


Default Mail Client
-------------------

The default mail client (icon) can be determined like this:

[HKEY_CLASSES_ROOT[b]mailto[/b]\DefaultIcon]
@="<DefaultIconLocation>"

[HKEY_CLASSES_ROOT[b]mailto[/b]\shell\open\command]
@="<DefaultCommandLine>"

The information stored in HKLM\Software\Clients\Mail is somehow irrelevant. That is, because these settings are only used by Internet Explorer and by "Internet Options" control panel. The values below
HKCR\mailto\shell\open\command\
and
HKLM\Software\Clients\Mail\<DefaultMailer>\
only correspond, when you use "Internet Options" control panel to set your default mail client!


4) a way to create lnk shortcut to allow, for example, to open a link with IE.

See: Open URL shortcut in IE with K-M as default browser?


Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: kko
Date: October 06, 2005 10:11PM

Ooops. Second trial:

I'm back again, fellows. I've been cut off since last friday (I had no DSL connection).

Finally tested your little tool, Alain. (The version you made last week to work with 2k/XP, I don't have the new one yet.) Works fine! Some observations:

1) There is no need to place vdsrun30.dll in the windows directory. Simply put it into the same directory as WebShortcut.exe (i.e. place both files into the K-Meleon "tools" directory).

2) In your macros, you can replace "getpref(STRING, $dir)" by "$path" ($path is defined the line below $dir).


When K-Meleon is (properly) set up as your default browser (i.e. is associated with the http protocol), the Windows OS will automatically display such a link with the K-Meleon icon. A mailto-link will automatically be displayed with the icon of your default mail client. In general, Windows will automatically display ANY shortcut (whether *.url or *.lnk) with the correct icon.

No, for URL, I always have IE icon, with w98se, w2k and XP Pro.

Sorry Alain, you are right. The official SetDefault.exe (yours, too?) does indeed NOT perform a correct icon setup! The following is written to the registry:

[HKEY_CLASSES_ROOT\K-Meleon.HTML\DefaultIcon]
@="C:\\Program Files\\K-Meleon\\K-Meleon.exe,1"

[HKEY_CLASSES_ROOT\http\DefaultIcon]
@=""

[HKEY_CLASSES_ROOT\https\DefaultIcon]
@=""

You see, what's wrong! The default icon location for protocols http and https is set to an empty string instead to "...\K-Meleon.exe,1" (I forgot, that I had corrected this). Therefore, Internet Shortcuts to http(s) addresses are shown with the default icon of *.url files. And that is an IE icon. I consider this to be a cosmetic bug. Perhaps you can update your version of SetDefault.exe in regard to this.


Following some further notes, that might be helpfull to you, Alain:

---------------------------------------
Windows Registry & Default Applications
---------------------------------------


Structure of the Windows Registry
---------------------------------

There are three keys in the Windows Registry, that store class data (data related to file types and protocols):
- HKEY_CLASSES_ROOT
- HKEY_CURRENT_USER\Software\Classes
- HKEY_LOCAL_MACHINE\Software\Classes

The settings in HKEY_LOCAL_MACHINE (HKLM) affect all users. Any user can read from HKLM. But (on WinNT) only privileged users can write to HKLM.
The settings in HKEY_CURRENT_USER (HKCU) only affect the currently logged on user. Any user can read from and write to HKCU, because any user has his own HKCU key.
HKEY_CLASSES_ROOT (HKCR) is a virtual key. HKCR is a copy of HKLM\Software\Classes overwritten with HKCU\Software\Classes. Thus, HKCR stores all the data that is valid for the current user.

In consequence, an application should allways read class data from HKEY_CLASSES_ROOT. Writing class data to the Windows Registry however, is much more complicated. Since HKCR is a virtual key, a write request to HKCR will be redirected to either HKCU\Software\Classes or HKLM\Software\Classes. Which of both it actually is will depend on the circumstances and is nearly unpredictable (at least to me ;). So, I myself avoid writing to HKEY_CLASSES_ROOT. Explicitely write to HKCU\Software\Classes (this will allways work, but will only affect the current user) or to HKLM\Software\Classes (this will affect all users, but will only work, when the current user is privileged).


Default Browser (and Default Applications in general)
-----------------------------------------------------

The meaning of the term "Default Browser" is very fuzzy. Sometimes, the default browser is referred to as default application for HTML files (I would call this the "Default HTML Viewer", however). And sometimes, it is referred to as default application for the http: (and httpssmiling smiley protocol. But of course, these two (three) settings can be configured individually. You can associate *.htm(l) files with MSIE, http: protocol with Opera and https: protocol with K-Meleon (doesn't really make sense though, but just to give an example). Now make your choice what you call the default browser! IMO, there is no default browser. There are only default applications for specific file types or protocols.

These default applications (and the corresponding default icons) can be determined like this:

[HKEY_CLASSES_ROOT\.<FileExtension>]
@="<DocumentType>"

[HKEY_CLASSES_ROOT\<DocumentType>\DefaultIcon]
@="<DefaultIconLocation>"

[HKEY_CLASSES_ROOT\<DocumentType>\shell]
@="<DefaultAction>"
; IF "<DefaultAction>" == "" THEN
[HKEY_CLASSES_ROOT\<DocumentType>\shell\open\command]
; ELSE
[HKEY_CLASSES_ROOT\<DocumentType>\shell\<DefaultAction>\command]
; ENDIF
@="<DefaultCommandLine>"


[HKEY_CLASSES_ROOT\<Protocol>\DefaultIcon]
@="<DefaultIconLocation>"

[HKEY_CLASSES_ROOT\<Protocol>\shell\open\command]
@="<DefaultCommandLine>"


Default Mail Client
-------------------

The default mail client (icon) can be determined like this:

[HKEY_CLASSES_ROOT[b]mailto[/b]\DefaultIcon]
@="<DefaultIconLocation>"

[HKEY_CLASSES_ROOT[b]mailto[/b]\shell\open\command]
@="<DefaultCommandLine>"

The information stored in HKLM\Software\Clients\Mail is somehow irrelevant. That is, because these settings are only used by Internet Explorer and by "Internet Options" control panel. The values below
HKCR\mailto\shell\open\command\
and
HKLM\Software\Clients\Mail\<DefaultMailer>\
only correspond, when you use "Internet Options" control panel to set your default mail client!


4) a way to create lnk shortcut to allow, for example, to open a link with IE.

See: Open URL shortcut in IE with K-M as default browser?

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: kko
Date: October 06, 2005 10:13PM

Yep. Reads better now...

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: alain aupeix at wanadoo fr
Date: October 06, 2005 11:51PM

Thank's for info, i think i know a lot of them, but I perhaps can found something I don't know.

For my tool, I'm finishing the function to create IE shortcuts, no needing wsc script. It seems to work perfectly, but I ought to make two little tools with Turbo C and there was a long time I don't touch it ...

It works for XP, I just have to make it for w9x.

I'll then improve documentation and put it on line.

This evening perhaps.

A+

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: Midas
Date: October 12, 2005 04:39PM

Since some time has passed, I thought I should ask if there are any news about this eagerly awaited utility, Alain... Thanks anyway.

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: alain aupeix at wanadoo fr
Date: October 12, 2005 06:19PM

Yes there are.

Version 0.20 is ready.

All I want to add is working (for XP and w98)

But I'm just finishing Englisg doc.

Before this evening, I think it will be ok

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: 666
Date: February 21, 2006 04:59AM

Hi alain,

I'd like the latest version a try.

Where can I download a copy?

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: Fred
Date: February 21, 2006 07:20PM

Just in case Alain should not read this post :
You can download it from his website at

http://perso.wanadoo.fr/jujuland/kmeleon/index.html#km_tools

Fred

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: foobarly
Date: May 31, 2007 09:14PM

Sorry for bringing back an old thread, but I think the question is important:

Is Shortcutmenu still valid under KM version 1.1?

What are the instructions changed?

Thanks (especially to Alain).

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: JujuLand
Date: May 31, 2007 11:17PM

I haven't tried it again, when I have a litle more time, I'll try it ...

A+


Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:31.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/75.0

Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr




Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: foobarly
Date: June 05, 2007 07:41PM

<bump>

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: 666
Date: June 19, 2007 07:05AM

How interesting... right now the shortcut-to-desktop macro is the only K-M 1.1 macro!

http://kmeleon.sourceforge.net/ewiki/MacroLibrary2

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: foobarly
Date: June 27, 2007 06:08PM

<bump>

Options: ReplyQuote
yxLFjqDGZHpcMcfPaUE
Posted by: arman
Date: June 04, 2008 09:36AM

g4AD5c fdv084y0v4t3cnfv593bv29vb

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: priya
Date: August 13, 2008 01:46PM

Quote
666
One of the very few good things about IE is the option to right-click on a page and send a shortcut to your desktop.

KM only has an option to send a link to an email client.

Is there a trick to add 'shortcut on desktop' to KMs right-click menu?


Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: desga2
Date: August 13, 2008 10:20PM
Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: 666
Date: September 05, 2008 10:58AM

To make the macro work with K-Meleon v1.5 you have to edit it a bit. I added this to the shortcut macro page on http://kmeleon.sourceforge.net/wiki/KmmShortcut :

Quote

This macro works OK on K-Meleon versions before version 1.5. If you have K-Meleon version 1.5, search the .kmm file for # K-Meleon 1.5, remove the # for the line right under it, and add a # to the line below # K-Meleon prior to 1.5:.

________________________________
make windows xp behave

Options: ReplyQuote
oqLgBUkQCiHJbjBSTr
Date: September 09, 2008 02:02PM

Your current antivirus solution is not protecting you
against Spyware and Adware. Get real protection!
http://www.go4soft.net

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: kko
Date: September 09, 2008 10:15PM

KmmShortcut now works in both km 1.1 and 1.5 (no edition required).

Options: ReplyQuote
Re: 'shortcut on desktop' in right-click menu?
Posted by: melody kunda
Date: October 20, 2009 05:27PM
Options: ReplyQuote
Pages: Previous123
Current Page: 3 of 3


K-Meleon forum is powered by Phorum.