Thx, desga2, the change of the notepad.exe into another .exe works great (I forgot to put doubled \ in my own previous attempts). I am curious to see your solution for the mail.
I upload to my web a 7zip file with a patch to K-MCCF ME 0.08, i named it 'desga2 Edition'. This is a recopilation of errors and bugs fixed by me. A lot of this fixed are in this thread. To install it copy the files in each folder and overwrite the old files.
IMPORTANT NOTE: If you make changes in your originals files you must a backup of files that you will overwrited. Else you can lost your modifications.
List of changes & fixeds:
<> In preferences panel i changed Avanced tab to subs:
Area Code -> Notes application path
Cyberarticle path -> Mail client path
+ Added better notes macro with application path configuration and modificated notes functions to read application preference without restart.
+ Added mail option in menu, mail lua macro and configuration to mail client path in preference panel.
- Deleted Weather Report and Area Code in menus, macros and preferences.
- Deleted Cyberarticle references in all lua macros and preferences.
+ Added a mail button in toolbar. (toolbars.cfg file to default skin Silverbird)
+ Implemented Freedom button concept included, no strict toolbars definitions!
(All buttons are independent)
^ Better preference panel GUI, texts and boxes definitions.
! Fixed some preference panel strings and definitions in locals.lua.
+ Created menu access to config files: menus, accel.cfg, toolbar.cfg, prefs.js and kmeleon.js (in edit.lua file). You can found in 'Options' -> 'Advanced configs' menu.
+ Added 'About plugins' in 'Help' menu. And others abouts changeds.
^ Updated UserAgent strings.
Quote ACM So no one will tell desga2 that the link above does not work? Wanna a free, no ads free host that really works? Try this: http://www.110mb.com
Thanks for your hosting recomendation, i'll considered to change.
But the problem is the php forum URL link conversion:
With [ url = ...] example link [ / url ] notation:
example.url
I have used [ b ]& [ / b ] to link showed good.
www.example.url
PHP forum URL links conversion not run fine.
Edited: Curiosity in the 'Preview' of the post the link is showed good.
I am sorry to report that the new edited link does not work also. I even tried to download the file with another browser, but it failed as well. Another host recommendation could be http://megashare.com/ .
I guess there is some misundersting going on here. On my part, mind you. I expected 4/5 MB file, but I got just a mere 2 KB one. I failed to notice this is just a patch, not the complete browser bundle or a new, full variant compilation of the whole source code of K-Meleon. I am really sorry and beg your pardon, although allow me to reassert that the original link was indeed broken.
Quote Zoohooter Is there an easy way to put items from the preference drop down list back on the Toolbar area like "File, View, Edit, etc.?
To show menu bar go to Preference panel (click in Preference button) and in first tab 'Display' check 'Show Menu' option. You need restart K-Meleon to view changes.
This option will changed the pref value:
user_pref("kmeleon.toolband.Menu.visibility", false);
to
user_pref("kmeleon.toolband.Menu.visibility", true);
in your 'pref.js' file in your K-M user profile:
Example: Add a menu item to open an Instant Messenger.
To change menus you must modify 'menus.cfg' file. You can found this file in path:
C:\K-MeleonCCFME0.08Beta3\pref\menus.cfg
If you have installed my patch, see before posts in this thread, you can acces to this file from menu: Options -> Advanced Configs -> Menus
- Documentation, plugin for K-Meleon and others tools:
Mark307's web page (creator of Lua plugin for K-Meleon):
http://mark307.hp.infoseek.co.jp/
First you must add this line in 'macros.lua' file to load new macro file:
require "external"
'external' is the name (without extension) of Lua macro file ('external.lua', in this example).
'macros.lua' file is in path: C:\K-MeleonCCFME0.08Beta3\pref\macros.lua
Example code to Lua macro file 'external.lua':
--[[
Filename: external.lua
This is a lua macro to exec an external application method.
By: desga2
Note to load macro and this work:
Needed add this line in 'macros.lua' file at path: C:\K-MeleonCCFME0.08Beta3\pref\
require "external"
Example to use in 'menus.cfg':
luamacro(externalexec("C:\full\path\to\filename.exe"), Open external application)
]]
function externalexec(path)
if path then
exec(path)
end
end
Remember save changes in all files and restart K-Meleon CCF.
Now you have a new menu item to open your Instant Messenger: (in this example)
External -> Open MSN Messenger
--[[
Filename: JSToggleB.lua
This is a lua macro to checked/unchecked (on/off) button in toolbar,
as for example a JavaScript button.
By: desga2
Based on: http://kmeleon.sourceforge.net/forum/read.php?1,76210,76238#msg-76238
Note to load macro and this work:
Needed add this line in 'macros.lua' file at path: C:\K-MeleonCCFME0.08Beta3\pref\
require "JSToggleB"
Example code to use it in 'toolbars.cfg':
JSButton Bar(16,16){
JSButton{
luamacro(ToggleJS)
JavaScript Toggle
toolhot.bmp[19]
toolcold.bmp[18]
tooldead.bmp[19]
}
}
]]
-- Main function:
function ToggleJS()
JSToggle()
_pref_SyncJavaScript()
end
-- Toolbar syncronization:
function _pref_SyncJavaScript()
-- JSButton Bar (make sure the toolbar name is correct):
toolbar_name="JSButton Bar"
if getpref(TYPE_BOOL, "javascript.enabled")==false then
v_button=1
elseif getpref(TYPE_BOOL, "javascript.enabled")==true then
v_button=0
end
pluginmsg("toolbars","CheckButton",toolbar_name..",luamacro(ToggleJS)"..","..v_button)
end
-- Load button state when start:
hook.add(StartupHook, _pref_SyncJavaScript)
hook.add(LoadHook, _pref_SyncJavaScript)
hook.add(ActivateWindowHook, _pref_SyncJavaScript)
Thanks for the reply. Is this supposed to work? I followed the above instructions and when I open KM I get the following error msg:
...Program Files\K-MeleonCCFME0.08Beta3\pref\macros.lua:40: module 'JSToggleB' not found:
no field package.preload['JSToggleB']
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\lua\JSToggleB.lua'
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\lua\JSToggleB.lc'
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\pref\\lua\JSToggleB.lua'
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\pref\\lua\JSToggleB.lc'
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\lua\JSToggleB.lua'
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\lua\JSToggleB.lc'
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\pref\\lua\JSToggleB.lua'
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\pref\\lua\JSToggleB.lc'
no file 'C:\Program Files\K-MeleonCCFME0.08Beta3\pref\\lua\JSToggleB.dll'
Code in post before must be in a text filenamed 'JSToggleB.lua' as you can read at begining of code:
Quote In my code Filename: JSToggleB.lua
This file must be stored in 'lua' folder in your K-M CCf installation path, for example: C:\K-MeleonCCFME0.08Beta3\lua\
In this folder are all .lua files, your problem can be two things:
A) You saved code in a file with other filename or extension.
B) You saved the file in an incorrect folder. (not in \lua folder)
When you add this code line in 'macros.lua' file:
Quote In my code Needed add this line in 'macros.lua' file at path: C:\K-MeleonCCFME0.08Beta3\pref\
require "JSToggleB"
You are says to K-M CCF "Search me this file 'JSToggleB' and load it (.lua is added automaticaly) that must be in '\lua' folder", but in your case, K-M CCF not found your file.
Check if your inserted line code in 'macros.lua' is identical filenamed to filename (and the correct extension .lua) with all code in before post.
Check it and try again!
The error message is clear: "module 'JSToggleB' not found"
Aha! there is a button on the toolbar titled "Javascript Toggle", unfortunately, clicking on it does nothing :-( . I placed the script in the "Silverbird" toolbars.cfg since that is the skin I use. Is this correct? and if not, where should it be placed? tia
2) Add this line in 'macros.lua' file at path: C:\K-MeleonCCFME0.08Beta3\pref\
require "JSToggleB"
For example you can add it at end of 'require "******"' line list (after last line or in middle of list where you like). Save changes and close.
3) Open windows explorer, go to your K-MeleonCCF install folder and go to \lua subfolder in it. Example path: C:\K-MeleonCCFME0.08Beta3\lua\
4) Create a new text file. (you know, yes? Rigth click -> New -> Text Document)
And rename it to JSToggleB.lua
5) Open your new file JSToggleB.lua with notepad or similar and paste all code in before post. Save changes and close.
6) Run K-MeleonCCF and there is a new icon in toolbar!
PUSH IT! Work, PUSH IT AGAIN! WORK!
Good job boy.
I hope you don't get angry with me.
P.S.; When it work is showed in status bar the message "JavaScript ALLOWED/BLOKED"
(When you push in button, obviously)
If this not work you are a bad boy. Read this again but now with more attention because you are doing something bad.