Shoutbox

Displaying Info - 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: Displaying Info (/showthread.php?tid=85215)

Displaying Info by Zero on 08-05-2008 at 08:33 PM

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


RE: Displaying Info by Spunky on 08-05-2008 at 08:54 PM

Depends how you want it to be displayed and who to etc.


RE: Displaying Info by CookieRevised on 08-05-2008 at 10:22 PM

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).


RE: Displaying Info by Zero on 08-08-2008 at 07:09 PM

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?


RE: Displaying Info by matty on 08-08-2008 at 07:23 PM

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
RE: Displaying Info by CookieRevised on 08-08-2008 at 10:26 PM

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.
RE: Displaying Info by Zero on 08-14-2008 at 07:36 PM

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???????????


RE: Displaying Info by roflmao456 on 08-14-2008 at 08:39 PM

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