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
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: 'objExecObject.StdIn' << error
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.
11-04-2009 07:08 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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