General :  K-Meleon Forum
General discussion about K-Meleon. 
K-Meleon1.5a Settings question
Posted by: erica
Date: October 25, 2007 03:06AM

I do not understand a method of the setting of the cash.
Please,teach me.

Options: ReplyQuote
Re: K-Meleon1.5a Settings question
Posted by: JamesD
Date: October 25, 2007 07:37AM

I assume that erica means cache. Rather than explain about changeing the configuration, I tried to make a macro to help. The macro runs but DOES NOT make the change to configuration.

Does anyone know why this does not work?

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- Cache15a1.kmm
# ---------- K-Meleon Macro Language change cache disk and memory values ---------------
#
# Dependencies : main.kmm
# Resources : -
# Preferences : -
# Version : 0.2 2007-10-24
# --------------------------------------------------------------------------------

_Cache_RunCode{

$_cache_disk = "browser.cache.disk.capacity" ;
$_cache_memory = "browser.cache.memory.capacity" ;

$_cache_disk_value = getpref(INT,$_cache_disk);
$_cache_memory_value = getpref(INT,$_cache_memory);

$_cache_disk_newValue=prompt($_cache_disk_value,"Change the disk cache value here");
### cancel from prompt will return a length of zero to which we add one
$_cache_disk_newValue = 1.$_cache_disk_newValue;
$_cache_disk_newValue_Len=length($_cache_disk_newValue);
### if the length is 1 cancelled was pressed on the prompt box
$_cache_disk_newValue_Len == 1 ? statusbar("Disk cache remains at ". $_cache_disk_value):&_cache_disk_Changed ;

$_cache_memory_newValue=prompt($_cache_memory_value,"Change the memory cache value here");
### cancel from prompt will return a length of zero to which we add one
$_cache_memory_newValue = 1.$_cache_memory_newValue;
$_cache_memory_newValue_Len=length($_cache_memory_newValue);
### if the length is 1 cancelled was pressed on the prompt box
$_cache_memory_newValue_Len == 1 ? statusbar("Memory cache remains at ". $_cache_memory_value):&_cache_memory_Changed ;
}

_cache_disk_Changed{
$_cache_disk_newValue = substr($_cache_disk_newValue,1);
statusbar("New value for disk is " . $_cache_disk_newValue);
setpref(INT,$_cache_disk,$_cache_disk_newValue );
}

_cache_memory_Changed{
$_cache_memory_newValue = substr($_cache_memory_newValue,1);
statusbar("New value for memory is " . $_cache_memory_newValue);
setpref(INT,$_cache_memory,$_cache_memory_newValue );
}

_Cache_ModMenu{
setmenu("&Tools",macro,"Cache",_Cache_RunCode,Misc);
}

$OnInit=$OnInit."_Cache_ModMenu;";
$macroModules=$macroModules."Cache15a1;";

Options: ReplyQuote
Re: K-Meleon1.5a Settings question
Posted by: erica
Date: October 25, 2007 08:37AM

I served as a reference for me very much.
It is studied.
thank you very much.:-)

Options: ReplyQuote
Re: K-Meleon1.5a Settings question
Posted by: JamesD
Date: October 25, 2007 08:42AM

@ erica

The macro DOES NOT change the values yet. I am hoping someone will tell me why.

Options: ReplyQuote
Re: K-Meleon1.5a Settings question
Posted by: erica
Date: October 25, 2007 02:52PM

I was too used to simple operation, and a fundamental part became negligent.

Options: ReplyQuote
Re: K-Meleon1.5a Settings question
Posted by: guenter
Date: October 25, 2007 04:10PM

Take a k-meleon.exe from a 1.1 install.
Rename it to k-meleon1.1.exe.
Copy k-meleon1.1.exe to 1.5 installation directory.
Start k-meleon1.1exe and use old Preferences dialog to write values smiling smiley

Alternative: type about:config into URL, go there, look for Cache and change Cache values.

p. s. 1.5 dialog will be repaired some day smiling smiley

Options: ReplyQuote


K-Meleon forum is powered by Phorum.