quote:
Originally posted by SmokingCookie
You put the "function" keyword in front of the name, simply because it is a function. JScript does support events, but in a very different way. Patchou has programmed Plus! try and to call these functions (if they exist in the JScript code) when the corresponding event occurs:
JScript code:
function HelloWorld() { // define function
Messenger.DisplayToast("","Hello world!");
}
Hello world(); // call function
The "if" part checks whether the screen name of the contact who sent the message (the Origin parameter) is not the same as your screen name. In the latter case, the function is called directly upon OnEvent_ChatWndSendMessage(); this is again a function called when a specific action is performed: a message is sent by clicking the "Send" button in a conversation window.
i think i got it now...
so for every function in that help-file thingy you put 'function' instead of 'if'?
i'm gonna try some little things to learn more about it, thank you guys!