Remmember kmm files only work for 1.1x and later versions.
Below code is for 1.02 and before versions.
1) Go to menu: Edit -> Configuration -> Macros
Copy next code to end of file macros.cfg and save changes:
# ----- Auto-Fill macro extension:
AF_Define_Text{
$STRING=getpref(STRING, "user.preference.auto-fill.string");
statusbar("Default accelerate for Auto-Fill: F12");
$VALUE=prompt("Insert Auto-Fill string:", "Define Auto-Fill string", $STRING);
$VALUE!=""? $STRING=$VALUE:0;
$VALUE!=""? setpref(STRING, "user.preference.auto-fill.string", $STRING):0;
}
AutoFill{
$TEXT=getclipboard();
$STRING=getpref(STRING, "user.preference.auto-fill.string");
setclipboard($STRING);
id(ID_EDIT_PASTE);
setclipboard($TEXT);
}
2) Go to menu: Edit -> Configuration -> Menus
Search for 'Tools' in file menus.cfg, add the next bold line and save changes:
# ----- Tools
&Tools{
%ifplugin macros
:&Mail And News
-
: Page &Search
:&Web Search
:&Translate From
%else
&Web Search\tCtrl+G=ID_NAV_SEARCH
%endif
%ifplugin macros|privacy
-
:&Privacy
%endif
%ifplugin macros
: Pro&xy
:&User Agent
-
macros(AF_Define_Text,&Auto-Fill...)
macros(Hotlinks,&Hotlinks...)
macros(MGestures,Mouse &Gestures...)
-
macros(JSConsole,JavaScript &Console)
%endif
}
3) Go to menu: Edit -> Configuration -> Accelerators
Copy next code to end of file accel.cfg and save changes:
# Auto-Fill:
VK_F12 = macros(AutoFill)
- Restart K-Meleon for changes take effect. And now you have a new option in menu Tools 'Auto-Fill...' for define Auto-Fill string and you can use Auto-Fill push F12 key.
Greetings and enjoy!
K-Meleon in Spanish
Edited 1 time(s). Last edit at 10/26/2007 12:21PM by desga2.