iirc, activexobjects aren't recommended to be defined as a global variable
try this
(looking at your code..):
JScript code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind){
if(Origin!=Messenger.MyName){
var file=new ActiveXObject("Scripting.FileSystemObject").OpenTextFile(MsgPlus.ScriptFilesPath+"\\text.txt",1,1);
var text=file.ReadAll().split("\r\n");
file.close();
for(i in text)if(new RegExp(text[i],"i").test(Message)){
ChatWnd.SendMessage(text[Math.floor(Math.random()*text.length)]);
break;
}
}
}