Shoutbox

'objExecObject.StdIn' << error - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: 'objExecObject.StdIn' << error (/showthread.php?tid=92779)

'objExecObject.StdIn' << error by njitram on 11-03-2009 at 09:45 PM

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


RE: 'objExecObject.StdIn' << error by matty on 11-04-2009 at 07:08 PM

After looking at the script I think it would be cool add a few features. I PMed MenthiX asking for the creators email so I can email them about it. If I don't get a response I will just do it but it wont be uploaded to the database.