I've just tried the installer, and I also get the error message "'tip' is null
or not an object"
As far as I can tell the tip object is not being created in the correct scope. I
ran a few tests and the object remains initialised up until the end of the Init
routine, but is lost once that routine is finished - exactly what you'd expect
if there was a scope issue. Why there's a scope issue I'm not sure since you
clearly declare the tip object at the global level.
I've got a fix for this though. Just move the code from the init routine to the
top of the module so it reads
var module_name = "IntelliTips";
var module_ver = "1.0";
var tip = null;
try {
tip = new ActiveXObject('PSPad_IntelliTips.Tips');
if (tip) {
tip.Init(global);
} else {
echo('no');
}
} catch(err) {
echo('error: ' + err.message);
}
Now I get no error messages and diagnostics show the tip object exists
correctly. Unfortunately I can actually get to pop anything up, but maybe I'm
not using correctly? Some working examples would be useful.
--
<http://forum.pspad.com/read.php?2,35782,41736>
PSPad freeware editor http://www.pspad.com