Displaying Info |
Author: |
Message: |
Zero
Junior Member
Posts: 29
– / /
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 |
|
|
Spunky
Former Super Mod
Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
|
RE: Displaying Info
Depends how you want it to be displayed and who to etc.
<Eljay> "Problems encountered: shit blew up"
|
|
08-05-2008 08:54 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
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?
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 |
|
|
Zero
Junior Member
Posts: 29
– / /
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
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 |
|
|
Zero
Junior Member
Posts: 29
– / /
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 |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
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 |
|
|
|
|