What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Debug.Clear();

Pages: (2): « First [ 1 ] 2 » Last »
Debug.Clear();
Author: Message:
SuNcO
Full Member
***

Avatar

Posts: 128
Reputation: 6
45 / Male / Flag
Joined: Jan 2005
O.P. Debug.Clear();
This is not a bug, just a suggestion

Can we have a Clear method on Debug ?

Debug.Clear();
12-01-2007 11:44 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Debug.Clear();
cool (y)...

PS: you could already do it using some Windows APIs though. But simply Debug.Clear() would be much easier :D

On the same 'debug window' note: I really miss timestamps :p
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-02-2007 12:11 AM
Profile PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: Debug.Clear();
And I want to (in the latest beta) be able to clear the contents of the Debug Information inside the script editor. This is only possible by disabling the Debug Information, and enabling it again, really annoying.
12-02-2007 12:22 AM
Profile E-Mail PM Find Quote Report
SuNcO
Full Member
***

Avatar

Posts: 128
Reputation: 6
45 / Male / Flag
Joined: Jan 2005
O.P. RE: Debug.Clear();
Ehmm.. i think you can click on Debug (ComboBox) and click on "Clean debug window" option ^o)

Btw.. im wondering why can't do this..

function OnEvent_ChatWndCreated(ChatWnd) {
  var Contacts = ChatWnd.Contacts;
  for (i = 0; i < Contacts.Count(); i ++) {
    contacto = Contacts[i];
    Debug.Trace(contacto.Email);
  }
}

I think is much easier then Enumerator
12-02-2007 03:04 AM
Profile PM Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: Debug.Clear();
vikke : will be done. Just press Esc or Backspace in the editor debug window (next beta) to clear it.

I'll see about adding a Clear() API.
[Image: signature2.gif]
12-02-2007 04:56 AM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Debug.Clear();
quote:
Originally posted by SuNcO
Ehmm.. i think you can click on Debug (ComboBox) and click on "Clean debug window" option ^o)
Yes you can, for the standalone debug window. Vikke's suggestion is about the debug window in the script editor itself.




------------------------------------------------------------

[OFF TOPIC]

quote:
Originally posted by SuNcO

Btw.. im wondering why can't do this..

function OnEvent_ChatWndCreated(ChatWnd) {
  var Contacts = ChatWnd.Contacts;
  for (i = 0; i < Contacts.Count(); i ++) {
    contacto = Contacts[i ];
    Debug.Trace(contacto.Email);
  }
}

I think is much easier then Enumerator
1) ChatWnd.Contacts isn't an array. It is an enumeration object.
2) Enumerations is equally easy and long as your code to program.
3) Enumerations are much more safer for stuff like that. In fact, your code will not show all contacts if a contact was added during the for...loop. The same problem will happen when you are actually manipulating the items and some item gets deleted from the list. In that case your i value will be bigger than the value of Contacts.Count resulting in an error and failure of the script.
4) In short: avoid using arrays for stuff like this.

[/OFF TOPIC]

This post was edited on 12-02-2007 at 01:31 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-02-2007 05:25 AM
Profile PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Debug.Clear();
quote:
Originally posted by CookieRevised
I really miss timestamps
That would be great! It would also help break up the messages a bit more.  It may also be nice to use a rich edit control rather than just an edit control so that we can use colours to quickly tell the difference between the messages without reading it fully (may also make it easier to get people to look through their logs when they have a problem).
[Image: markee.png]
12-02-2007 08:01 AM
Profile PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: RE: Debug.Clear();
quote:
Originally posted by Patchou
vikke : will be done. Just press Esc or Backspace in the editor debug window (next beta) to clear it.
Thanks, works great! :)
12-02-2007 10:02 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Debug.Clear();
quote:
Originally posted by Patchou
vikke : will be done. Just press Esc or Backspace in the editor debug window (next beta) to clear it.
but isn't 'Del' more logical?

(this is also what is used in other programs to clear non-editable textboxes... goes in the same line for when you want to delete a selection. So I think it is more logical than using Esc or Backspace.)

(and maybe also enabling this in the standalone debug window would be cool :D => ps: also by using DEL you wont conflict with the already closing of the window by pressing ESC)...

This post was edited on 12-02-2007 at 01:34 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-02-2007 01:34 PM
Profile PM Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: Debug.Clear();
Alright for Del instead of Esc.
[Image: signature2.gif]
12-02-2007 04:18 PM
Profile PM Web 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