What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » creating a simple Msgbox?

creating a simple Msgbox?
Author: Message:
rh
Full Member
***


Posts: 115
– / Male / –
Joined: Mar 2003
O.P. creating a simple Msgbox?
Hi,

normally in WSH you can use WSH.echo for displaying message boxes. this does not work under plus!, because the object WSH does not exist. i also dont know how to instantiate it, because in

WSH = new ActiveXObject("...");

i would not know what to put between the brackets.

any ideas on how to be able to display a message box? thanks a lot!

rh
06-25-2006 11:53 AM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: creating a simple Msgbox?
You could use the windows api
This is from now playing so credit to dt:
code:
function alert(wndHandle,title,message){
    Interop.Call("User32", "MessageBoxW", wndHandle, message, title, 0);
}
The params are:
wndHandle - the windows handle of the relivent window
title - the title of the messagebox
message - the message to display

This post was edited on 06-25-2006 at 12:16 PM by Plik.
06-25-2006 12:10 PM
Profile PM Find Quote Report
rh
Full Member
***


Posts: 115
– / Male / –
Joined: Mar 2003
O.P. RE: creating a simple Msgbox?
works perfectly, thanks a lot!
06-25-2006 12:33 PM
Profile E-Mail PM Find Quote Report
« 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