General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Automatic Error Console for testing
Posted by: JamesD
Date: July 23, 2009 05:54PM

Sometimes when I am working on a new macro, I get so fixated on the code and what I hope to see on the screen that I forget to check the error console to see if that shows me a problem. So I wrote this little program that I can turn on for testing and leave off for surfing.

AutoE.kmm

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- AutoE.kmm
# ---------- Automatic Error Console display for testing  ----------------
#
# Dependencies	: main.kmm (OpenURL)
# Resources	: "chrome://console2/content/console2.xul"
# Preferences	: "k-meleon_autoe_first"
# Author        : JamesD  
# Version       : 1.0   2009-07-23
# -------------------------------------------------------------------------

_AutoE_Console {
if (getpref( BOOL , "k-meleon_autoe_first" ) == true ) {
	$OpenURL="chrome://console2/content/console2.xul"; &OpenURL_InNewWindow;
	setpref( BOOL , "k-meleon_autoe_first", false );
	}
}

_AutoE_Counter {
setpref( BOOL , "k-meleon_autoe_first", true );
}

$OnLoad=$OnLoad."_AutoE_Console;";
$OnInit=$OnInit."_AutoE_Counter;";
# -------------------------------------------------------------------------
$macroModules=$macroModules."AutoE;";


Options: ReplyQuote
Re: Automatic Error Console for testing
Posted by: desga2
Date: July 23, 2009 08:09PM

Thanks JamesD, very useful for testing. smiling smiley

K-Meleon in Spanish

Options: ReplyQuote
Re: Automatic Error Console for testing
Posted by: disrupted
Date: July 23, 2009 09:33PM

very good idea..this brings back 1.1.x macro error checking right at startup and hopefully end my missing semicolons problems

Options: ReplyQuote
Re: Automatic Error Console for testing
Posted by: guenter
Date: July 23, 2009 11:08PM

often used by me / pick new ico/bmp 4 tools/tool-bar's item:

%ifplugin macros
JavaScript &Console(24,24){rs it
JavaScript &Console{
macros(Console2)

JavaScript &Console
optionshot.bmp[1]
optionscold.bmp[1]
optionscold.bmsp[1]
}
So&urce Code{
ID_VIEW_SOURCE
So&urce Code
optionshot.bmp[2]
optionscold.bmp[2]
optionscold.bmp[2]
}




&Save Page As...(24,24){

Save{
ID_FILE_SAVE_AS
&Save Page As...

mainbarhot.bmp[5]
mainbarcold.bmp[5]
mainbardead.bmp[5]
}
}



Edited 1 time(s). Last edit at 07/23/2009 11:11PM by guenter.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.