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;";