What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Different sign-in sound while having a certain psm

Pages: (2): « First [ 1 ] 2 » Last »
Different sign-in sound while having a certain psm
Author: Message:
Tool
New Member
*


Posts: 8
Joined: Jun 2006
O.P. Different sign-in sound while having a certain psm
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. :)

This post was edited on 06-26-2006 at 11:27 AM by Tool.
06-26-2006 11:26 AM
Profile E-Mail PM Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
34 / Male / Flag
Joined: May 2004
RE: Different sign-in sound while having a certain psm
Try that:

code:
function OnEvent_Initialize(MessengerStart)
{
OnEvent_ContactSignin (Email)
  {
  if (Email == "*******@hotmail.com" && Messenger.MyPersonalMessage == "Nukkumassa")
  {
   PlaySound ("\C:\Documents and Settings\Tomi\Omat tiedostot\Messenger äänet\happytreefriendsthemesong.mp3") ;
  }
}
}


This post was edited on 06-26-2006 at 12:10 PM by mathieumg.
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
06-26-2006 11:58 AM
Profile E-Mail PM Web Find Quote Report
Tool
New Member
*


Posts: 8
Joined: Jun 2006
O.P. RE: Different sign-in sound while having a certain psm
Thank you very much ^^ now it at least loads the script.

EDIT: After testing, I discovered that it still doesn't work. :P

This post was edited on 06-26-2006 at 12:34 PM by Tool.
06-26-2006 12:02 PM
Profile E-Mail PM Find Quote Report
Tool
New Member
*


Posts: 8
Joined: Jun 2006
O.P. RE: Different sign-in sound while having a certain psm
help? please? someone? ;_;
06-26-2006 08:51 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Different sign-in sound while having a certain psm
code:
function OnEvent_Initialize(MessengerStart)
{
OnEvent_ContactSignin (Email)
  {
  if (Email == "*******@hotmail.com" && Messenger.MyPersonalMessage == "Nukkumassa")
  {
   PlaySound ("C:\\Documents and Settings\\Tomi\\Omat tiedostot\\Messenger äänet\\happytreefriendsthemesong.mp3") ;
  }
}
}
06-26-2006 08:54 PM
Profile PM Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: Different sign-in sound while having a certain psm
Shouldn't it be like this? I'm not sure if the initialize is required since it's not being used.
code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_ContactSignin(Email)
{
  if (Email == "*******@hotmail.com" && Messenger.MyPersonalMessage == "Nukkumassa")
   MsgPlus.PlaySound ("C:\\Documents and Settings\\Tomi\\Omat tiedostot\\Messenger äänet\\happytreefriendsthemesong.mp3") ;
}

This post was edited on 06-26-2006 at 09:05 PM by Silentdragon.
06-26-2006 08:57 PM
Profile E-Mail PM Web Find Quote Report
Tool
New Member
*


Posts: 8
Joined: Jun 2006
O.P. RE: RE: Different sign-in sound while having a certain psm
quote:
Originally posted by deAd
code:
function OnEvent_Initialize(MessengerStart)
{
OnEvent_ContactSignin (Email)
  {
  if (Email == "*******@hotmail.com" && Messenger.MyPersonalMessage == "Nukkumassa")
  {
   PlaySound ("C:\\Documents and Settings\\Tomi\\Omat tiedostot\\Messenger äänet\\happytreefriendsthemesong.mp3") ;
  }
}
}


This I tried, doesn't work.
06-26-2006 08:58 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Different sign-in sound while having a certain psm
Oops, sorry. Missed something.

OnEvent_ContactSignin (Email){
  if(Email == "*******@hotmail.com" && Messenger.MyPersonalMessage == "Nukkumassa")
  {
   MsgPlus.PlaySound("C:\\Documents and Settings\\Tomi\\Omat tiedostot\\Messenger äänet\\happytreefriendsthemesong.mp3");
  }
}
06-26-2006 09:00 PM
Profile PM Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
34 / Male / Flag
Joined: May 2004
RE: Different sign-in sound while having a certain psm
How come I never saw that :p

code:
OnEvent_ContactSignin (Email){
  if(Email == "*******@hotmail.com" && Messenger.MyPersonalMessage == "Nukkumassa")
  {
   MsgPlus.PlaySound("\C:\\Documents and Settings\\Tomi\\Omat tiedostot\\Messenger äänet\\happytreefriendsthemesong.mp3");
  }
}


Added the backslash \
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
06-26-2006 09:07 PM
Profile E-Mail PM Web Find Quote Report
Tool
New Member
*


Posts: 8
Joined: Jun 2006
O.P. RE: Different sign-in sound while having a certain psm
Thanks for the help everyone! ^^ I'll report back when I get to test it. (shouldn't take long)
06-26-2006 09:11 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On