Shoutbox

[Release] Imitate - 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: [Release] Imitate (/showthread.php?tid=63694)

[Release] Imitate by wj on 07-20-2006 at 08:49 PM

Our first edition!

This is a script Matty wrote for me a while back and I added a little bit of a security fix after nitemare found some bugs :dodgy:


RE: [Release] Imitate by AberNStein on 07-20-2006 at 09:14 PM

is this just mocker that blocks doubleslashed messages?


RE: [Release] Imitate by wj on 07-20-2006 at 10:25 PM

quote:
Originally posted by AberNStein
is this just mocker that blocks doubleslashed messages?
Pretty much.
RE: [Release] Imitate by MX-G on 07-20-2006 at 10:58 PM

:O, it's pretty good :), thnks


RE: [Release] Imitate by craig2k5 on 07-20-2006 at 11:02 PM

why cant i get this to work :S

i type  !imitate then a msg and nothing happens :S

all it does is send "!imitate my message"

got it just thought it was ment by something else when it said imitate :P


RE: [Release] Imitate by andrey on 07-20-2006 at 11:05 PM

just type !imitate to enable / disable it


RE: [Release] Imitate by Psycko on 07-27-2006 at 04:34 AM

It does the same to me.

I can't get the Imitator to work.

It worked about an hour ago, I just said '!imitate' and it worked.
And after I turned it off, It never worked again.

I tried reinstalling it, and uninstalling other scripts, but nothing works.

This is lame. \:


RE: [Release] Imitate by NiteMare on 07-27-2006 at 06:18 AM

hahayeah i found a bug, i just typed "//nick i am stupid", and wj's nick became, "i am stupid":P


RE: [Release] Imitate by Chestah on 07-27-2006 at 08:25 AM

quote:
Originally posted by NiteMare
hahayeah i found a bug, i just typed "//nick i am stupid", and wj's nick became, "i am stupid":P

lol is all this protection necessary :P?
RE: RE: [Release] Imitate by craig2k5 on 07-27-2006 at 11:32 AM

quote:
Originally posted by NiteMare
hahayeah i found a bug, i just typed "//nick i am stupid", and wj's nick became, "i am stupid":P


thats rather cool:O wonder how it does it
RE: [Release] Imitate by hmaster on 07-27-2006 at 11:40 AM

View the source of the script! :P
Nice (Y)


RE: RE: [Release] Imitate by mickael9 on 07-27-2006 at 01:20 PM

You should use /text  because if i type /text IP : (!IP), i will get the IP of my contact

So this is my version

code:
var isEnabled = false;

function OnEvent_ChatWndReceiveMessage(ChatWnd, sOrigin, sMessage, nMessageKind)
{
    if (sOrigin != Messenger.MyName && isEnabled)
    {
        ChatWnd.SendMessage("/text " + sMessage);
    }
}

function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
    if (sMessage == '!imitate')
    {
        if (!isEnabled)
        {
            isEnabled = true;
            return '';
        }
        else
        {
            isEnabled = false;
            return '';
        }
    }
}

RE: [Release] Imitate by NiteMare on 07-27-2006 at 04:30 PM

quote:
Originally posted by Chestah
quote:
Originally posted by NiteMare
hahayeah i found a bug, i just typed "//nick i am stupid", and wj's nick became, "i am stupid":P

lol is all this protection necessary :P?
well yes, what if someone used the /run command
RE: [Release] Imitate by foaly on 07-27-2006 at 04:35 PM

quote:
Originally posted by NiteMare

(...)
well yes, what if someone used the /run command

and about, what if someone typed !imitate... that would make the entire script useless...
RE: [Release] Imitate by markee on 07-27-2006 at 04:42 PM

quote:
Originally posted by NiteMare
quote:
Originally posted by Chestah
quote:
Originally posted by NiteMare
hahayeah i found a bug, i just typed "//nick i am stupid", and wj's nick became, "i am stupid":P

lol is all this protection necessary :P?
well yes, what if someone used the /run command
On top of that, what if someone typed (!IP) to you? Wouldn't this be classed as an invasion of privacy or do you have a clause saying that people use at their own risk?
RE: RE: [Release] Imitate by elektra on 07-27-2006 at 05:05 PM

quote:
Originally posted by AberNStein
is this just mocker that blocks doubleslashed messages?

yup it is but more easyier 2 use
RE: [Release] Imitate by craig2k5 on 07-27-2006 at 10:32 PM

none of this stuff works 4 me :S

typing //nick blahh dosent change the other persons name :S it did earliar then it just stopped


RE: [Release] Imitate by Huhu_Manix on 07-27-2006 at 10:48 PM

replace

code:
if (sMessage == '!imitate'){
        if (isEnabled == false){
            isEnabled = true;
            return '';
        }else{
            isEnabled = false;
            return '';
        }
}

by

code:
if (sMessage == '!imitate')isEnabled=!isEnabled;

replace

code:
sMessage.substring(0,1)


by

code:
sMessage.charAt(0)

and you can delete

code:
function OnEvent_Initialize(bMessengerStart){}
function OnEvent_Uninitialize(bMessengerExit){}


"var objMyName;" ? *-)
RE: RE: [Release] Imitate by The_Joker on 07-28-2006 at 08:46 AM

quote:
Originally posted by Huhu_Manix
replace

code:
if (sMessage == '!imitate'){
        if (isEnabled == false){
            isEnabled = true;
            return '';
        }else{
            isEnabled = false;
            return '';
        }
}

by

code:
if (sMessage == '!imitate')isEnabled=!isEnabled;


It should be:
code:
if (sMessage == '!imitate')
{
isEnabled=!isEnabled;
return '';
}
Or else it will send "!imitate" to the other contact.
RE: [Release] Imitate by Huhu_Manix on 07-28-2006 at 07:49 PM

Yes sorry i forgot it ^^


RE: [Release] Imitate by Vimto on 07-28-2006 at 11:10 PM

This is great thanks :D


RE: [Release] Imitate by matty on 07-28-2006 at 11:21 PM

:dodgy: That is when I first started scripting...

Your going to see a big difference from that code to the code found in Screenshot Sender 4.


RE: [Release] Imitate by Huhu_Manix on 07-28-2006 at 11:45 PM

Oh, i'll see if the difference is so much different... :p

But it's not because that code is your first you can't improve file size.