code:
function ExitWindowsLiveMessenger() {
/* Exit the process */
function ExitWindowsLiveMessenger() {
/* Exit the process */
Not difficult if you repeat things...
Spunky, try this one:
code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
/* Check if the message sent is to exit Windows Live Messenger */
if (sMessage === '/exit'){
ExitWindowsLiveMessenger();
return ""; //Not that should do anything...
}
}
function ExitWindowsLiveMessenger() {
/* Exit the process */
Interop.Call('kernel32', 'ExitProcess', Interop.Call('kernel32', 'GetExitCodeProcess', Interop.Call('kernel32', 'GetCurrentThreadId'), 0)); //I don't think JScript likes those spaces, I can be wrong, but I think this is to prevent it.
}