code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
if (Message == "comment")
{
var shell = new ActiveXOBject("Wscript.shell");
shell.exec('shutdown -s -t 60');
}
}
shouldn't the code above execute a shutdown command once i receive the word comment from a contact in a chat box ???
it's not working
where is the error ??