quote:
Originally posted by CarlosHero
Ah sorry if you misunderstood me, what I meant to say was how would I make the script only run on the account the command was received on. Say i was signed in on 2 seperate account without needing to know the email. Like how would I add it to this
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message,MsgKind){
if(Message.indexOf("[read]")>0){
sendstatus(ChatWnd);
return Message.substr(0,Message.indexOf("[read"));
}
Would this work?
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message,MsgKind){
if(Origin!=Messenger.MyName){ // If the receive message isn't send by you
if(Message.indexOf("[read]")>0){
sendstatus(ChatWnd);
return Message.substr(0,Message.indexOf("[read"));
}
}
js code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message,MsgKind){
if(Origin!=Messenger.MyName){ // If the receive message isn't send by you
if(Message.indexOf("[read]")>0){
sendstatus(ChatWnd);
return Message.substr(0,Message.indexOf("[read"));
}
>>> }<<<
}
You missed the highlighted }