What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » To The Pro's: please correct this cool script

Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
To The Pro's: please correct this cool script
Author: Message:
DennisMartijn
Full Member
***


Posts: 119
Joined: Jul 2006
O.P. RE: To The Pro's: please correct this cool script
ill try...
07-17-2006 10:03 AM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: To The Pro's: please correct this cool script
a few points..

  • DisplayToast() displays a toast for you, it isnt possible to display a toast to your contact
  • Contact.Blocked tells you if you blocked that person, not if they blocked you
  • Sound file names need to be escaped properly (e.g. "C:\\blah.txt" instead of "C:\blah.txt")

edit: Nitemare, giving him wrong code seriously wont help..

This post was edited on 07-17-2006 at 10:04 AM by Eljay.
07-17-2006 10:04 AM
Profile PM Find Quote Report
DennisMartijn
Full Member
***


Posts: 119
Joined: Jul 2006
O.P. RE: To The Pro's: please correct this cool script
well, i dont want the contact to display a toast to him,
thanks for the second point correction,
and im just stupid:P
07-17-2006 10:06 AM
Profile E-Mail PM Find Quote Report
NiteMare
Veteran Member
*****

Avatar
Giga-Byte me

Posts: 2497
Reputation: 37
37 / Male / Flag
Joined: Aug 2003
RE: To The Pro's: please correct this cool script
quote:
Originally posted by Eljay
a few points..

  • DisplayToast() displays a toast for you, it isnt possible to display a toast to your contact
  • Contact.Blocked tells you if you blocked that person, not if they blocked you
  • Sound file names need to be escaped properly (e.g. "C:\\blah.txt" instead of "C:\blah.txt")

edit: Nitemare, giving him wrong code seriously wont help..

better then what he had, it showed him  that format atleast!

try this instead
code:
     Person = Contacts.GetContact("XXXX@XXXX.nl");
     Person.Blocked = True;


i'll stop posting now, since apparently i'm not helping

[Image: sig/]
I'll never forget what she said 6861 days, 4 hours, 40 seconds ago
Need hosting? Check
out my website. we can help you out :)
07-17-2006 10:07 AM
Profile PM Web Find Quote Report
DennisMartijn
Full Member
***


Posts: 119
Joined: Jul 2006
O.P. RE: To The Pro's: please correct this cool script
you are helping!!!!!
please dont stop!

i mean it, you gave me almost the whole big correction:P

This post was edited on 07-17-2006 at 10:09 AM by DennisMartijn.
07-17-2006 10:08 AM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: To The Pro's: please correct this cool script
please could you explain exactly what you want the script to do, what i understood was:

you want to specify a persons email, and when you change your status to busy you want a toast showing whether the person specified has blocked you or not... right?
07-17-2006 10:10 AM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: To The Pro's: please correct this cool script
Full explanation of the code:
code:
function OnEvent_MyStatusChange(NewStatus){
This rule declares an event function called when you changes your status.
code:
     If (NewStatus == "4"){
And if your new status is set on Busy...
code:
           Messenger.Blocked("xxxx@xxxx.nl");
...an unexisting function Blocked() in the Messenger object will be called. This should have to be
code:
          var sander = Contacts.GetContact("xxxx@xxxx.nl");
          var sanderIsBlocked = sander.Blocked;
to see if you blocked him or
code:
          var sander = Contacts.GetContact("xxxx@xxxx.nl");
          sander.Blocked == true;
to block him. So, no block checker at all!
code:
           MsgPlus.DisplayToast("Sander", "Sander heeft je geblokkeerd." ," C:\Program Files\MSN Messenger\online.wma");
Then, a toast will popup that Sander has blocked you... :-/

Block checkers don't work, and there's no way you can create them due to the Messenger Protocol!
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
07-17-2006 10:15 AM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: To The Pro's: please correct this cool script
Here's the code :cheesy:
code:
function OnEvent_MyStatusChange(NewStatus)
{
if (NewStatus == "4")
{
  var Contacts = Messenger.MyContacts;
  var Contact = Contacts.GetContact("smarterchild@hotmail.com");
  if (Contact.Blocked == false)
  {
    Contact.Blocked = true;
  }
           MsgPlus.DisplayToast("Sander", "Sander heeft je geblokkeerd." ," C:\Program Files\MSN Messenger\online.wma");
     }
}

07-17-2006 10:17 AM
Profile E-Mail PM Web Find Quote Report
NiteMare
Veteran Member
*****

Avatar
Giga-Byte me

Posts: 2497
Reputation: 37
37 / Male / Flag
Joined: Aug 2003
RE: To The Pro's: please correct this cool script
quote:
Originally posted by -!Felu!-
Here's the code :cheesy:
code:
function OnEvent_MyStatusChange(NewStatus)
{
if (NewStatus == "4")
{
  var Contacts = Messenger.MyContacts;
  var Contact = Contacts.GetContact("smarterchild@hotmail.com");
  if (Contact.Blocked == false)
  {
    Contact.Blocked = true;
  }
           MsgPlus.DisplayToast("Sander", "Sander heeft je geblokkeerd." ," C:\Program Files\MSN Messenger\online.wma");
     }
}



i would have gotten there soon enough:P

This post was edited on 07-17-2006 at 10:25 AM by NiteMare.
[Image: sig/]
I'll never forget what she said 6861 days, 4 hours, 40 seconds ago
Need hosting? Check
out my website. we can help you out :)
07-17-2006 10:20 AM
Profile PM Web Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: To The Pro's: please correct this cool script
Toasts dont take wma's do they 8-)
---
quote:
Originally posted by #msgplus.script
(17-Jul-06) (15:56:34) <JAnderton>   var Contacts = Messenger.MyContacts;
(17-Jul-06) (15:56:34) <JAnderton>   var Contact = Contacts.GetContact("smarterchild@hotmail.com");
(17-Jul-06) (15:56:45) <JAnderton> am i the only one who sees a typo there
(17-Jul-06) (15:56:51) <JAnderton> and i see what his script is for
(17-Jul-06) (15:57:05) <JAnderton> he wants to block anyone who messages him while he is busy ¬¬
(17-Jul-06) (15:57:13) <JAnderton> just freaking sign out!!!

This post was edited on 07-17-2006 at 10:28 AM by John Anderton.
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
07-17-2006 10:23 AM
Profile E-Mail PM Web Find Quote Report
Pages: (4): « First « 1 [ 2 ] 3 4 » 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