Shoutbox

Script only for me - 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: Script only for me (/showthread.php?tid=63277)

Script only for me by zefaya on 07-14-2006 at 09:51 PM

Hi all, i want launch the scripts only for my email adresse.
So i include :

function OnEvent_ChatWndSendMessage(ChatWnd) {
if(Messenger.MyUserId == '584848673') {
    The rest of code
    }
}

But doesn't work..

and

var user = Messenger.MyUserId
var me = '584848673'
function OnEvent_ChatWndSendMessage(ChatWnd,Msg) {
if user = moi
{
    if(Msg == "^stealdp") { ...

again

Can you help me?


RE: Script only for me by Ezra on 07-14-2006 at 10:01 PM

Are you sure that is your userid?

You can also use your e-mailaddress, maybe that helps. Messenger.MyEmail


RE: Script only for me by L. Coyote on 07-14-2006 at 10:12 PM

quote:
Originally posted by zefaya
OnEvent_ChatWndSendMessage(ChatWnd)

You're missing an argument:
quote:
Originally posted by MsgPlus! Live Scripting Documentation
OnEvent_ChatWndSendMessage(ChatWnd, Message)

Don't forget to download the documentation.
RE: Script only for me by NiteMare on 07-14-2006 at 10:25 PM

also confirm thats your UserID:

Debug.Trace(Messenger.MyUserId);


RE: Script only for me by zefaya on 07-15-2006 at 04:45 PM

Thanks Leonardo, that's work ;)


RE: Script only for me by Voldemort on 07-15-2006 at 04:52 PM

So how did it end up? it seems useful...