What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » is there any way to display an alert\message box (MsgBox) in a script?

Pages: (2): « First [ 1 ] 2 » Last »
is there any way to display an alert\message box (MsgBox) in a script?
Author: Message:
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
29 / Male / Flag
Joined: Oct 2006
O.P. Sad  is there any way to display an alert\message box (MsgBox) in a script?
is there any way to display an alert\message box in a script?

This post was edited on 10-20-2006 at 09:51 PM by Tochjo.
10-20-2006 09:39 PM
Profile E-Mail PM Web Find Quote Report
ins4ne
Veteran Member
*****

Avatar
...

Posts: 1015
Reputation: 38
37 / Male / Flag
Joined: Apr 2006
Status: Away
RE: MsgBox
you mean a 'toast'? i cant script but i know its possible to pop them up. any scripting pro here to correct me?

edit: typos :@

This post was edited on 10-20-2006 at 09:43 PM by ins4ne.
[Image: b5c5bb366c94ba43283cc13901380e3e.png]
10-20-2006 09:42 PM
Profile PM Find Quote Report
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
29 / Male / Flag
Joined: Oct 2006
O.P. RE: MsgBox
no i do not mean a "toast" i mean like in javascript  when you go "alert("hello");" or in vb where you go "MsgBox("hello")"
10-20-2006 09:45 PM
Profile E-Mail PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
RE: MsgBox
quote:
Originally posted by ins4ne
you mean a 'toast'? i cant script but i know its possible to pop them up. any scripting pro here to correct me?

edit: typos :@
No he meant MsgBox :P

BillBoy: try looking at this: Useful Snippets
YouTube closed-captions ripper (also allows you to download videos!)
10-20-2006 09:45 PM
Profile E-Mail PM Web Find Quote Report
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
29 / Male / Flag
Joined: Oct 2006
O.P. RE: RE: MsgBox
quote:
Originally posted by Mike
quote:
Originally posted by ins4ne
you mean a 'toast'? i cant script but i know its possible to pop them up. any scripting pro here to correct me?

edit: typos :@
No he meant MsgBox :P

BillBoy: try looking at this: Useful Snippets

i was trying to use MessageBox instead of MessageBoxW what is the difference?

EDIT: the problem might not be the msgbox, if there is anything wrong with this script could you please tell me
code:
function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_Signin(Email)
{
    if (email == "emdogg10@hotmail.com")
    {
        MsgPlus.DisplayToast("Critical Error!", "Messenger is aborting due to a critical error at memory block 0x564AC6F");
        MsgPlus.LockMessenger(true);
    }
}


function OnEvent_MyStatusChange(Status)
{
    Onevent_Signin("emdogg10@hotmail.com");
}


This post was edited on 10-20-2006 at 10:08 PM by Baggins.
10-20-2006 09:50 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: is there any way to display an alert\message box (MsgBox) in a script?
code:
function OnEvent_Signin(Email)
{
if (email == "emdogg10@hotmail.com")
{
MsgPlus.DisplayToast("Critical Error!", "Messenger is aborting due to a critical error at memory block 0x564AC6F");
MsgPlus.LockMessenger(true);
}
}


JScript is case sensitive and so Email and email are two different variables causing the if statment to never return true.

EDIT:

Also:
code:
function OnEvent_MyStatusChange(Status)
{
Onevent_Signin("emdogg10@hotmail.com");
}

is not right

This post was edited on 10-20-2006 at 10:21 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-20-2006 10:20 PM
Profile PM Find Quote Report
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
29 / Male / Flag
Joined: Oct 2006
O.P. RE: RE: is there any way to display an alert\message box (MsgBox) in a script?
code:
function OnEvent_Signin(email)
{
if (email == "emdogg10@hotmail.com")
{
MsgPlus.DisplayToast("Critical Error!", "Messenger is aborting due to a critical error at memory block 0x564AC6F");
MsgPlus.LockMessenger(true);
}
}


JScript is case sensitive and so Email and email are two different variables causing the if statment to never return true.

that was an accident with typing

EDIT:

Also:
code:
function OnEvent_MyStatusChange(Status)
{
Onevent_Signin("emdogg10@hotmail.com");
}

is not right

this is for debugging purposes. how can i fix it

EDIT: never mind i fixed it. thank you!

This post was edited on 10-20-2006 at 10:43 PM by Baggins.
10-20-2006 10:40 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: is there any way to display an alert\message box (MsgBox) in a script?
Use "OnEvent_Signin" rather than "Onevent_Signin"
<Eljay> "Problems encountered: shit blew up" :zippy:
10-20-2006 10:42 PM
Profile PM Find Quote Report
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
29 / Male / Flag
Joined: Oct 2006
O.P. RE: is there any way to display an alert\message box (MsgBox) in a script?
thanks
10-20-2006 10:43 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: is there any way to display an alert\message box (MsgBox) in a script?
quote:
Originally posted by billboy1001
is there any way to display an alert\message box in a script?
Forum search "msgbox" or "message box" or "alert":
Alert(MsgBox in VB) Help?
MessageBox parameters/flags
etc.

(aka: always try to search the forums first ;))

quote:
Originally posted by billboy1001
i was trying to use MessageBox instead of MessageBoxW what is the difference?
Windows APIs come often in two versions: an ANSI version and a UNICODE version.

The ANSI versions are suffixed with the letter A.
The UNICODE versions are suffixed with the letter W.

eg: MessageBoxA, MessageBoxW

In case there are two different APIs, you must explicitly use one of the two. Just using "MessageBox" for example will not work as that API with that name doesn't exist.

Ansi is the character set with normal characters (from ascii code 0 to 255). But some languages use other characters or have far more characters than the 26 you're used to. eg: Japanese, Hebrew, etc. For these there is the Unicode set.

So functions which exist as a Unicode version can handle all possible characters. It is preffered that you use the Unicode version of APIs when scripting (unless you have a specific reason not to).
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-21-2006 02:36 AM
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