What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Displaying Info

Displaying Info
Author: Message:
Zero
Junior Member
**

Avatar

Posts: 29
– / Male / Flag
Joined: Aug 2008
O.P. Displaying Info
Hi folks,

I'm just wondering there's a way to display bits of info, other than using a Trace, a Toast, or a custom window? Is there possibly a JScripting function/method that can be called? Just curious about this one as both MPL and JScript are new to me.

Thanks!
  Zero
08-05-2008 08:33 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Displaying Info
Depends how you want it to be displayed and who to etc.
<Eljay> "Problems encountered: shit blew up" :zippy:
08-05-2008 08:54 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Displaying Info
quote:
Originally posted by Zero
Hi folks,

I'm just wondering there's a way to display bits of info, other than using a Trace, a Toast, or a custom window? Is there possibly a JScripting function/method that can be called? Just curious about this one as both MPL and JScript are new to me.

Thanks!
  Zero
Sending a message? :p

anyways, ChatWnd::DisplayInfoMessage (see scripting documentation) is the only other way available with pure Plus! scripting. Unless you're going to use Windows APIs, then you could display a Windows Message box, systemtray tooltip or balloon, ermmmm...... then there is the titlebar of the chat window itself which you could change, etc...

As SpunkyLoveMuff said, it all depends on what you want to display and to whom (user or a contact).


This post was edited on 08-05-2008 at 10:24 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-05-2008 10:22 PM
Profile PM Find Quote Report
Zero
Junior Member
**

Avatar

Posts: 29
– / Male / Flag
Joined: Aug 2008
O.P. RE: Displaying Info
Very helpful, thnx guys. Finally, I just wanna be clear on one last detail: my understanding is that since we aren't coding a webpage, the "window" & "document' objects are not available to us - as a result, we can't call the alert, prompt, or confirm message boxes. Is that correct?
08-08-2008 07:09 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Displaying Info
quote:
Originally posted by Zero
Very helpful, thnx guys. Finally, I just wanna be clear on one last detail: my understanding is that since we aren't coding a webpage, the "window" & "document' objects are not available to us - as a result, we can't call the alert, prompt, or confirm message boxes. Is that correct?
No but you have basically full access to the Windows API. http://msdn.microsoft.com
08-08-2008 07:23 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Displaying Info
quote:
Originally posted by Zero
Very helpful, thnx guys. Finally, I just wanna be clear on one last detail: my understanding is that since we aren't coding a webpage, the "window" & "document' objects are not available to us - as a result, we can't call the alert, prompt, or confirm message boxes. Is that correct?
Nope. I already said you could, if you use the Windows API:
quote:
Originally posted by CookieRevised

... use Windows APIs, then you could display a Windows Message box, systemtray tooltip or balloon, ermmmm...... then there is the titlebar of the chat window itself which you could change, etc...

---

quote:
Originally posted by matty
quote:
Originally posted by Zero
Very helpful, thnx guys. Finally, I just wanna be clear on one last detail: my understanding is that since we aren't coding a webpage, the "window" & "document' objects are not available to us - as a result, we can't call the alert, prompt, or confirm message boxes. Is that correct?
No but you have basically full access to the Windows API. http://msdn.microsoft.com
...Which means you can call whatever message box, alert message, confirmation dialog, input box, file open/save dialogs, etc, you want.

Using the Windows API you can almost do whatever you want.

This post was edited on 08-08-2008 at 10:32 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-08-2008 10:26 PM
Profile PM Find Quote Report
Zero
Junior Member
**

Avatar

Posts: 29
– / Male / Flag
Joined: Aug 2008
O.P. RE: Displaying Info
Well... I'm afraid to ask this but... how do you use the windows API in a JS app?? Is there a specific MSDN example you folks could point me at???????????
08-14-2008 07:36 PM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: Displaying Info
quote:
Originally posted by Zero
Well... I'm afraid to ask this but... how do you use the windows API in a JS app?? Is there a specific MSDN example you folks could point me at???????????
start by looking at the Interop object in the Scripting Documentation ;).

code:
// MessageBox Example
Interop.Call("user32" /*DLL Name*/,"MessageBoxW" /*Function Name*/, 0 /*Handle*/, "Hello World!" /*Main Text*/, "Test" /*Title*/, 64 /*Icon & buttons*/);

http://msdn2.microsoft.com

This post was edited on 08-14-2008 at 08:40 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
08-14-2008 08:39 PM
Profile PM Web 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