What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Alert(MsgBox in VB) Help?

Alert(MsgBox in VB) Help?
Author: Message:
KnRd_WC
Junior Member
**

Avatar
Florian PAQUET

Posts: 74
Reputation: 1
35 / Male / Flag
Joined: Aug 2006
RE: RE: Alert(MsgBox in VB) Help?
quote:
Originally posted by Hit
One more question you know how to block something sending
So if i type something it wont send if you click no


If you want to send a message to a contact ??
Maybe I don't understand (I'm French ;)), but... what is "something" ??

For ALL messages
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message) {
    var Val=Interop.Call("User32.dll", "MessageBoxW", ChatWnd.Handle,"Message","Title", 4|32);
    if (Val==6) { // Yes
        return Message;
    }
    else if (Val==7) { // No
        return "";
    }
}


For a DEFINED message
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message) {
    if (Message=="MyMessage") {
        var Val=Interop.Call("User32.dll", "MessageBoxW", ChatWnd.Handle,"Message","Title", 4|32);
        if (Val==6) { // Yes
            return Message;
        }
        else if (Val==7) { // No
            return "";
        }
    }
return Message;
}


This post was edited on 08-21-2006 at 06:44 PM by KnRd_WC.
08-21-2006 06:34 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Alert(MsgBox in VB) Help? - by Hit on 08-21-2006 at 05:48 PM
RE: Alert(MsgBox in VB) Help? - by Eljay on 08-21-2006 at 05:58 PM
RE: Alert(MsgBox in VB) Help? - by KnRd_WC on 08-21-2006 at 06:05 PM
RE: Alert(MsgBox in VB) Help? - by Hit on 08-21-2006 at 06:14 PM
RE: Alert(MsgBox in VB) Help? - by KnRd_WC on 08-21-2006 at 06:19 PM
RE: Alert(MsgBox in VB) Help? - by Hit on 08-21-2006 at 06:28 PM
RE: RE: Alert(MsgBox in VB) Help? - by KnRd_WC on 08-21-2006 at 06:34 PM
RE: Alert(MsgBox in VB) Help? - by Matti on 08-21-2006 at 06:38 PM
RE: Alert(MsgBox in VB) Help? - by Hit on 08-21-2006 at 06:43 PM
RE: Alert(MsgBox in VB) Help? - by Matti on 08-21-2006 at 06:57 PM
RE: RE: Alert(MsgBox in VB) Help? - by CookieRevised on 08-22-2006 at 08:00 AM
RE: RE: RE: Alert(MsgBox in VB) Help? - by Hit on 08-22-2006 at 11:21 AM
RE: Alert(MsgBox in VB) Help? - by Hit on 08-21-2006 at 07:06 PM
RE: Alert(MsgBox in VB) Help? - by KnRd_WC on 08-21-2006 at 08:08 PM
RE: Alert(MsgBox in VB) Help? - by Hit on 08-21-2006 at 08:15 PM
RE: Alert(MsgBox in VB) Help? - by KnRd_WC on 08-21-2006 at 08:20 PM
RE: Alert(MsgBox in VB) Help? - by KnRd_WC on 08-22-2006 at 10:01 AM
RE: Alert(MsgBox in VB) Help? - by RaceProUK on 08-22-2006 at 10:24 AM
RE: Alert(MsgBox in VB) Help? - by -dt- on 08-22-2006 at 10:26 AM
RE: Alert(MsgBox in VB) Help? - by CookieRevised on 08-22-2006 at 04:01 PM


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