Shoutbox

Event when the contact sends a nudge? - 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: Event when the contact sends a nudge? (/showthread.php?tid=61581)

Event when the contact sends a nudge? by Mr. Bougo on 06-26-2006 at 02:16 PM

I can't find that...

Did Patchou forget it, is it going to be on next release, is there any other way to  detect a nudge received?


RE: Event when the contact sends a nudge? by mathieumg on 06-26-2006 at 02:20 PM

It would in fact be interesting if he adds it to the MessageKind list of OnEvent_ChatWndReceiveMessage. For the moment I think it is not supported though.


RE: Event when the contact sends a nudge? by Mr. Bougo on 06-26-2006 at 03:32 PM

Yup...

Thanks for the answer :)


RE: Event when the contact sends a nudge? by JonnyT on 06-26-2006 at 04:20 PM

i an just imagine it..someone nudges you, you've got a script that nudges back, but oh no, so have they! :P


RE: RE: Event when the contact sends a nudge? by mathieumg on 06-26-2006 at 04:27 PM

quote:
Originally posted by JonnyT
i an just imagine it..someone nudges you, you've got a script that nudges back, but oh no, so have they! :P


I already did that with an anti-slap/slapback script on IRC :D
RE: Event when the contact sends a nudge? by absorbation on 06-26-2006 at 04:36 PM

You already can. OnEvent_ChatWndReceiveMessage is there, if you detect the message "Contact has sent you a nudge" you can send one back, using /nudge. I'll make a mockup script now :)


RE: Event when the contact sends a nudge? by Thor on 06-26-2006 at 04:38 PM

The infinity war!

It would be good if it was supported. :)


RE: Event when the contact sends a nudge? by qgroessl on 06-26-2006 at 04:39 PM

:p haha... that could turn out really long and bad :p haha.... but it'd be kinda funny to do.

quote:
Originally posted by documentation
MessageKind
[enum] Number specifying the kind of message received. It can be one of the following identifiers:

0 - Unknown.
1 - Text message typed by the user.
2 - A wink being sent.
3 - A voice clip being sent.
4 - A search made with the "Search" button.
5 - The result of a search made with the "Search" button.
6 - A text message sent while the current user was offline.
It's not in there.... but it seems like it should be, since it's a type of message....
RE: Event when the contact sends a nudge? by pollolibredegrasa on 06-26-2006 at 04:45 PM

I tried this earlier (using 2 accounts on wlm), but according to the debugger, OnEvent_ChatWndReceiveMessage was never called when I recieved a nudge, although it was for normal messages...

Did I do something wrong? :p


RE: Event when the contact sends a nudge? by JonnyT on 06-26-2006 at 05:54 PM

hmm maybe nudges dont count as a message. they dont show up in chatlogs etc either


RE: Event when the contact sends a nudge? by mathieumg on 06-26-2006 at 05:57 PM

quote:
(1:57 PM) You sent a nudge !


They do show up :)
RE: Event when the contact sends a nudge? by JonnyT on 06-26-2006 at 06:03 PM

ah yeah, they show up in the MPL chat logs but not in the messenger chat logs.


RE: Event when the contact sends a nudge? by mathieumg on 06-26-2006 at 06:09 PM

Means that Patchou can easily add that event :p


RE: Event when the contact sends a nudge? by Mr. Bougo on 06-26-2006 at 06:14 PM

Yup, i did a lil debug script that writes any message sent and the nudges aren't shown in the debug script...


I wanted to do a nudge-back script :p


RE: Event when the contact sends a nudge? by Lou on 06-26-2006 at 06:22 PM

I believe it is supported, but Patchou may have forgotten to add the number in the Documentation.


RE: Event when the contact sends a nudge? by wlmcrap on 07-05-2006 at 02:14 AM

Can someone please give me the code for if when a contact sends a nudge it automatically replys with "Get Lost!" or "Go Away!" or others that i won't mention. :)
Thnx


RE: Event when the contact sends a nudge? by mathieumg on 07-05-2006 at 05:48 AM

If you'd have read the thread carefully, you would know that it is not yet possible to catch a nudge event, unfortunately.


RE: RE: Event when the contact sends a nudge? by Mr. Bougo on 07-05-2006 at 06:12 AM

quote:
Originally posted by .Lou
I believe it is supported, but Patchou may have forgotten to add the number in the Documentation.


No it isnt supported... The ChatWndReceiveMessage event isnt called when you get or send a nudge...


Try this and you'll see...

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Orig,Msg,MsgKind){
    Debug.Trace("Window handle: " + ChatWnd.Handle)
    Debug.Trace("Origin: " + Orig)
    Debug.Trace("Message: " + Msg)
    Debug.Trace("Message Kind: " + MsgKind)
    Debug.Trace("")
    Debug.Trace("____________")
    Debug.Trace("")
}

Huh, indent doesnt work with [ code] ????

RE: Event when the contact sends a nudge? by wlmcrap on 07-05-2006 at 09:33 AM

If nobody wants to make my script can someone at least plz look at my code and fix it for me?


Code:

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{

    if (Message == Origin+" just sent you a Nudge!")
    {
        ChatWnd.SendMessage("Go Away");
    } 
    return "Message";
}


RE: Event when the contact sends a nudge? by foaly on 07-05-2006 at 09:38 AM

wlmcrap
that won't work because OnEvent_ChatWndReceiveMessage isn't called when recieving a nudge...


RE: Event when the contact sends a nudge? by wlmcrap on 07-05-2006 at 09:44 AM

yes but when you recieve a nudge wlm says "the persons email or nickname + sent you a Nudge!". Therefore why shouldn't it work?


RE: Event when the contact sends a nudge? by foaly on 07-05-2006 at 09:45 AM

because it doesn't...


RE: Event when the contact sends a nudge? by wlmcrap on 07-05-2006 at 09:46 AM

or could someone plz maybe make a dll or executable?


RE: Event when the contact sends a nudge? by noroom on 07-05-2006 at 06:29 PM

Wow... He really doesn't get it. Do you think if we ignore him he will go away?

wlmcrap: you can't do this with Plus!'s scripting engine.


RE: Event when the contact sends a nudge? by wlmcrap on 07-05-2006 at 10:09 PM

you can't with the scripting engine but wouldn't you be able to if you made a program? or wouldn't you because maybe there is no event known when you recieve a nudge?


RE: Event when the contact sends a nudge? by Voldemort on 07-05-2006 at 10:12 PM

Or maybe, if you read the rules, you will know that double posting is no allowed.


RE: Event when the contact sends a nudge? by foaly on 07-05-2006 at 10:21 PM

maybe you're not making many friends this way...
and maybe if you don't make friends, they won't help you next time you have a problem...

and if my posts aren't written in perfect English, I'm very sorry...
but no reason to bitch about it...


RE: Event when the contact sends a nudge? by wlmcrap on 07-05-2006 at 10:29 PM

Naaaaaaaaaa, sorry i was being a d*** head