This is my first script, so I'm not even 100% sure how these things work. That said, I'm trying to make a script that plays a certain sound when a certain person comes online while I have a certain personal message. Here's the code so far:
function OnEvent_Initialize(MessengerStart)
{
OnEvent_ContactSignin (*******@hotmail.com)
{
if (Messenger.MyPersonalMessage == "Nukkumassa")
{
PlaySound ("C:\Documents and Settings\Tomi\Omat tiedostot\Messenger äänet\happytreefriendsthemesong.mp3") ;
}
}
}
As I said, I have no real idea of how the scripts work, so I've based all I've done on my knowledge of C-language, as it seemed quite similar. When trying to activate the script I get an error that the script might be invalid or I might not have the rights to start it. Thanks in advance for the help.