General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote="alain aupeix chez wanadoo fr"] [url=http://www.wanadoo.fr/jujuland/kmeleon/index.html]WebShortcut[/url] : A little tool to replace shortcut.js --- Why --- I love the idea of being able to create shortcut on the desktop since K-Meleon. And I appreciate the wsh script by kko. But unfortunately it uses windows script which can have been disabled for security reasons. So, I've created a little tool which can create shortcuts of all the links embeded in a web page: web page shortcut, mail address shortcut and finally all address file extension (as shortcut.js does) But, it has some advantages over js script: 1) possibility to restrict shortcut to web address and mail address (by deleting /; in the extension string) 2) possibility to choose the icon shortcut for web shortcuts and mail shortcuts (by default, web shortcut use K-Meleon icon 1, and mail shortcut use Default mail client icon 0) 3) Other files shortcuts use (when file types are known) the corresponding file type icons. 4) Mail shortcut are named 'Contact - <mailAdress>'' instead of 'New Contact' 5) Frame shortcut name are referenced about the page Title 'Frame of <Page Title>' 6) resource:// is corrected, view-source: also 7) you can choose the extension you consider as web extension (by default: '/;@;htm;html;shtml;php;php3;php4;asp'). I probalby have forgot some extensions, and it should be very cool to report it. 8) Able or disable the extension error message box 9) Change shortcut config from within K-Meleon. Let's try it and report here the problems. ---------------- Where to install ---------------- WebShortcut.exe must be put in K-Meleon\Tools directory or elsewhere you want(in this case, don't forget to modify the 4 macros in macros.cfg) vdsrun30.dll also, or better, in windows folder. ------------- In macros.cfg ------------- [b]PageToDesktop{ exec("\"tools\\WebShortcut.exe\" \"".getpref(STRING, $dir)."\" \"".$URL."\" \"".gsub("\"","'",$TITLE)."\""); } LinkToDesktop{ $sTitle = ""; exec("\"tools\\WebShortcut.exe\" \"".getpref(STRING, $dir)."\" \"".$LinkURL."\" \"".gsub("\"","'",$sTitle)."\""); } FrameToDesktop{ $sTitle = "Frame of ".$TITLE; exec("\"tools\\WebShortcut.exe\" \"".getpref(STRING, $dir)."\" \"".$FrameURL."\" \"".gsub("\"","'",$sTitle)."\""); } webShortcut{ exec("\"tools\\WebShortcut.exe\" \"".getpref(STRING, $dir)."\"") }[/b] ------------ In menus.cfg ------------ Add the bolded line to configurate shortcut from within K-Meleon If you already use one of my tools, and take the menu I give with it, you must have something like this: Outils e&xternes{ %ifplugin macros :Notepad :Connection manager :Cookie Monster [b]macros(Audio_config,Choose the audio player...)[/b] macros(webShortcut,Configurate shortcuts...) - ....... %endif } [b]The others entries in Save menu, Link menu and Frame menu are the same as given by kko.[/b] ----------- shortcut.js ----------- no more needed, can be deleted. --------------- webShortcut.ini --------------- automaticly created or modified in profile folder when ok button is clicked ----------------- What to improve ? ----------------- 1) The title of Link shortcuts and Frame shortcut is not entirely satisfactory,and can be improved for a great part of them by recovering strings like in 'Page Links' menu. By using a script javascript (it's the reason of $sTitle variable) As I'm not too much courageous to put my hand in javascript script, I hope someone will be :) 2) The translation of the tool (actually, it automatcly choose between French and other, which means english) in others langs, as for my others tools. If you insist ... ----- Note: ----- The tools recovers automaticly the address of K-Meleon in the registry. The value is saved in the ini file. If you want to bypass the registry value (for example when using different K-Meleon's install on the same computer), you just have to change the value in config. Don't confuse beetween K-Meleon's value and Browser's value in ini file. K-Meleon's one is for correcting resource:/// and Browser value is for shortcut icon. I'm waiting for you opinion about this tool. A+[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development