What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » 'objExecObject.StdIn' << error

'objExecObject.StdIn' << error
Author: Message:
njitram
New Member
*


Posts: 1
– / Male / –
Joined: Nov 2009
O.P. 'objExecObject.StdIn' << error
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;
    }
}


This post was edited on 11-03-2009 at 10:12 PM by njitram.
11-03-2009 09:45 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
'objExecObject.StdIn' << error - by njitram on 11-03-2009 at 09:45 PM
RE: 'objExecObject.StdIn' << error - by matty on 11-04-2009 at 07:08 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On