|  
 Different sign-in sound while having a certain psm - Printable Version
 
 -Shoutbox (https://shoutbox.menthix.net)
 +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
 +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
 +---- Forum: Scripting (/forumdisplay.php?fid=39)
 +----- Thread: Different sign-in sound while having a certain psm (/showthread.php?tid=61553)
 Different sign-in sound while having a certain psm by Tool on 06-26-2006 at 11:26 AM
 
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.
   RE: Different sign-in sound while having a certain psm by mathieumg on 06-26-2006 at 11:58 AM
 
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") ;
 }
 }
 }
 
 
 RE: Different sign-in sound while having a certain psm by Tool on 06-26-2006 at 12:02 PM
 
Thank you very much ^^ now it at least loads the script.
 EDIT: After testing, I discovered that it still doesn't work.
   RE: Different sign-in sound while having a certain psm by Tool on 06-26-2006 at 08:51 PM
 
help? please? someone? ;_;
 RE: Different sign-in sound while having a certain psm by deAd on 06-26-2006 at 08:54 PM
 
 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") ;
 }
 }
 }
 
 RE: Different sign-in sound while having a certain psm by Silentdragon on 06-26-2006 at 08:57 PM
 
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") ;
 }
 
 RE: RE: Different sign-in sound while having a certain psm by Tool on 06-26-2006 at 08:58 PM
 
 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.
 RE: Different sign-in sound while having a certain psm by deAd on 06-26-2006 at 09:00 PM
 
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");
 }
 }
 RE: Different sign-in sound while having a certain psm by mathieumg on 06-26-2006 at 09:07 PM
 
How come I never saw that  
 
 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 \
 RE: Different sign-in sound while having a certain psm by Tool on 06-26-2006 at 09:11 PM
 
Thanks for the help everyone! ^^ I'll report back when I get to test it. (shouldn't take long)
 RE: Different sign-in sound while having a certain psm by Tool on 06-26-2006 at 09:18 PM
 
Not working... any of those :\
 RE: Different sign-in sound while having a certain psm by Silentdragon on 06-26-2006 at 09:26 PM
 
 code:function OnEvent_ContactSignin(Email)
 {
 if (Email == "********@hotmail.com" && Messenger.MyPersonalMessage == "YourPSM")
 MsgPlus.PlaySound ("\C:\Test.wav");
 }
 
 The previous code you guys were using isn't valid.
 Thats how the function should be written, but it still doesn't work. No matter what I do It won't play a sound it always fails.
 RE: RE: Different sign-in sound while having a certain psm by Tool on 06-26-2006 at 09:29 PM
 
 quote:Originally posted by Silentdragon
 
 code:function OnEvent_ContactSignin(Email)
 {
 if (Email == "********@hotmail.com" && Messenger.MyPersonalMessage == "YourPSM") {
 MsgPlus.PlaySound ("\C:\Test.wav");
 }
 }
 
 The previous code you guys were using isn't valid.
 Thats how the function should be written, but it still doesn't work. No matter what I do It won't play a sound it always fails.
 
 
 I think I also tried something like that while trying different combinations of the previous suggestions
 RE: Different sign-in sound while having a certain psm by Silentdragon on 06-26-2006 at 09:36 PM
 
Here you go, this is all you need in the script
 code:function OnEvent_ContactSignin(Email)
 {
 if (Email == "******@hotmail.com" && Messenger.MyPersonalMessage == "Nukkumassa")
 MsgPlus.PlaySound("\\C:\\Documents and Settings\\Tomi\\Omat tiedostot\\Messenger äänet\\happytreefriendsthemesong.mp3");
 }
 
 RE: RE: Different sign-in sound while having a certain psm by Tool on 06-26-2006 at 09:40 PM
 
 quote:Originally posted by Silentdragon
 Here you go, this is all you need in the script
 
 code:function OnEvent_ContactSignin(Email)
 {
 if (Email == "******@hotmail.com" && Messenger.MyPersonalMessage == "Nukkumassa")
 MsgPlus.PlaySound("\\C:\\Documents and Settings\\Tomi\\Omat tiedostot\\Messenger äänet\\happytreefriendsthemesong.mp3");
 }
 
 
 Thank you so very much for this! ^_^ It actually works! I've wanted to get this kind of thing for a long time, but no-one made such plugin. Good thing we got the scripts. ^^
 
 |