Hiho,
Well i started recently and i wanna know why it gives an error (not a specified error i just says:
> Error detected on line 33 from "aSpellChecker.js": <unknown error> (Code: -2147024664)
> Error detected in "OnEvent_ChatWndSendMessage". (Code: -2147352567)
This is the code: (From Aspell)
code:
function OnEvent_Signin(Email){
objShell = new ActiveXObject("WScript.Shell");
objExecObject = objShell.Exec("C:\\Program Files\\Aspell\\bin\\aspell.exe -a");
out = objExecObject.StdOut.ReadLine();
hand = Interop.Call("user32","FindWindowW","ConsoleWindowClass","C:\\Program Files\\Aspell\\bin\\aspell.exe");
Interop.Call("user32","ShowWindow",hand,0);
}
function OnEvent_ChatWndSendMessage(ChatWindow, Message){
if (Message.substr(0,1)=='.'){
Message = Message.substr(1);
objExecObject.StdIn.WriteLine( Message ); //error
while(!objExecObject.StdOut.AtEndOfStream){ //error
out = objExecObject.StdOut.ReadLine();
if (out==""){
break;
}else if (out!="*"){
var pat = out.substr(0,1);
if (pat=='&'){
var col = out.indexOf(':');
var out2 = out.substr(col+2);
var suggest = out2.split(", ",1);
var errod = out.substr(2,out.indexOf(' ',2)-2);
trace(errod+"->"+suggest[0]);
Message = Message.replace(errod,suggest[0]);
}
}
}
return Message;
} else {
return Message;
}
}