What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Unique request,well not so unique

Pages: (2): « First « 1 [ 2 ] Last »
Unique request,well not so unique
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unique request,well not so unique
Blah its if he knows who is signed in on their phone he can put the email there, so if the email isn't one of those people then stylize the text.
10-25-2006 12:49 PM
Profile E-Mail PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: RE: Unique request,well not so unique
quote:
Originally posted by Matty
Blah its if he knows who is signed in on their phone he can put the email there, so if the email isn't one of those people then stylize the text.

true, but they're not always online using their phones.
aside from that, using this statement
code:
if (Email != "johndoe@hotmail.com || Email != "johndoe2@hotmail.com){
   // stylize text
}
will ALWAYS execute the code, since if Email has value "johndoe@hotmail.com" then it would be
code:
if (false || true) // thus TRUE
{
// execute code
}
so there's no point in having an if-statement this way because if you != 1 variable against more than 1 value, it will always return true.
10-25-2006 02:08 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Unique request,well not so unique
code:
if (Email != "johndoe@hotmail.com && Email != "johndoe2@hotmail.com){
   // stylize text
}


That should work though
<Eljay> "Problems encountered: shit blew up" :zippy:
10-25-2006 02:20 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unique request,well not so unique
Blah I was typing quickly you could have simply just said use && and not || geez 8-).
10-25-2006 02:50 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Unique request,well not so unique
Thats why I replied with that code. Jesus didn't really explain how to fix it :p
<Eljay> "Problems encountered: shit blew up" :zippy:
10-25-2006 02:52 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Unique request,well not so unique
quote:
Originally posted by SpunkyLoveMuff
Don't know if you can detect if a window is a "Mobile" contact though.
Programattically, yes you can. I believe the window classes are IMWindowClass and MobileMessageWindow. Three guesses at which one is which...
[Image: spartaafk.png]
10-25-2006 09:13 PM
Profile PM Web Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: RE: Unique request,well not so unique
quote:
Originally posted by Matty
Blah I was typing quickly you could have simply just said use && and not || geez 8-).

could have caused alot of confusion :|
10-25-2006 09:38 PM
Profile 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