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 |
|
|
Eljay
Elite Member
:O
Posts: 2949 Reputation: 77
– / / –
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 |
|
|
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
|
|
07-17-2006 10:06 AM |
|
|
NiteMare
Veteran Member
Giga-Byte me
Posts: 2497 Reputation: 37
37 / /
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
|
|
07-17-2006 10:07 AM |
|
|
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
This post was edited on 07-17-2006 at 10:09 AM by DennisMartijn.
|
|
07-17-2006 10:08 AM |
|
|
Eljay
Elite Member
:O
Posts: 2949 Reputation: 77
– / / –
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 |
|
|
Matti
Elite Member
Script Developer and Helper
Posts: 1646 Reputation: 39
32 / /
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!
|
|
07-17-2006 10:15 AM |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
Joined: Apr 2006
Status: Away
|
RE: To The Pro's: please correct this cool script
Here's the code
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 |
|
|
NiteMare
Veteran Member
Giga-Byte me
Posts: 2497 Reputation: 37
37 / /
Joined: Aug 2003
|
RE: To The Pro's: please correct this cool script
quote: Originally posted by -!Felu!-
Here's the code
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
This post was edited on 07-17-2006 at 10:25 AM by NiteMare.
|
|
07-17-2006 10:20 AM |
|
|
John Anderton
Elite Member
Posts: 3908 Reputation: 80
37 / /
Joined: Nov 2004
Status: Away
|
RE: To The Pro's: please correct this cool script
Toasts dont take wma's do they
---
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 |
|
|
Pages: (4):
« First
«
1
[ 2 ]
3
4
»
Last »
|
|