Hello,
I Downloaded the file from
http://shoutbox.menthix.net/showthread.php?tid=63043
But now i want to automaticly send a text when someone comes online.
I tried to change it and set it up like this
function OnEvent_ContactSignin(Email){
if(!fso.FolderExists(MsgPlus.ScriptFilesPath+"\\"+Messenger.MyUserId+"\\"))
fso.CreateFolder(MsgPlus.ScriptFilesPath+"\\"+Messenger.MyUserId+"\\");
if(Messenger.MyContacts.GetContact(Email).status!=1){
var Contact = Messenger.MyContacts.GetContact(Email);
if(fso.FileExists(MsgPlus.ScriptFilesPath+"\\"+Messenger.MyUserId+"\\"+Email+".txt")){
}
Open(Contact);
}
}
function Open(Contact){
CWnd = Messenger.OpenChat(Contact.Email);
CWnd.SendMessage(fso.OpenTextFile(MsgPlus.ScriptFilesPath+"\\"+Messenger.MyUserId+"\\"+((Contact.Network===1)?"":"yahoo:")+Contact.Email+".txt",1).ReadAll().replace(/[\s\S]{2}$/,""));
setTimeout ( 'Open(Contact)', 3000 );
That works, but it sends the message too fast.
I tried the timer but that don't work.
Can somebody help me.
PS. The orginal topic is closed that's why i started a new topic