Page 2 of 2

Posted: Tue Jan 01, 2008 7:17 pm
by netmaestro
OK, recompiled the code to test for all 4 supported PB languages. Download again and it is going to work for sure. I always only used this myself so I never hit this problem with it before.

Posted: Tue Jan 01, 2008 7:56 pm
by Kwai chang caine
YAHHHOOOOOO !!!!

You are a champion 8)
Nothing resists to you :shock:

I love you and give you a french kiss :D

Posted: Tue Jan 01, 2008 8:00 pm
by Berikco
Kwaï chang caïne wrote: I love you and give you a french kiss :D

euh guys, there are children under age sixteen reading here, kiss in private pls :lol:

Posted: Tue Jan 01, 2008 8:07 pm
by Kwai chang caine
:lol:

Posted: Tue Jan 01, 2008 8:19 pm
by netmaestro
Here, Grasshopper, lemme teach you how to fish:

Code: Select all

;=====================================================
; Library:          ClearDebugWindow
; Author:           Lloyd Gallant (netmaestro)
; Date:             August 7, 2007
; ====================================================

Procedure FindListBox(hwnd, *lbhwnd.LONG)
  cn$=Space(255)
  GetClassName_(hwnd, @cn$, 254)
  If UCase(cn$) = "LISTBOX"
    *lbhwnd\l = hwnd
    ProcedureReturn 0
  Else
    ProcedureReturn 1
  EndIf
EndProcedure

Procedure FindDebugWindow(hwnd, *debugoutput.LONG)
  wt$ = Space(255)
  GetWindowText_(hwnd, @wt$, 254)
  If FindString(wt$, "Debug Output", 1) Or FindString(wt$, "Messages du débogueur", 1) Or FindString(wt$, "Debugger-Ausgabe", 1) Or FindString(wt$, "Salida Depurador", 1)
    *debugoutput\l = hwnd
    ProcedureReturn 0
  Else
    ProcedureReturn 1
  EndIf
EndProcedure

ProcedureDLL ClearDebugWindow()
  Protected debugoutput=0, listboxhwnd=0
  time = ElapsedMilliseconds()
  Repeat
    EnumWindows_(@FindDebugWindow(), @debugoutput)
    Delay(1)
  Until debugoutput Or ElapsedMilliseconds()-time > 200
  If debugoutput
    EnumChildWindows_(debugoutput, @FindListBox(),@listboxhwnd)
  EndIf
  If listboxhwnd
    SendMessage_(listboxhwnd, #LB_RESETCONTENT,0,0)
    ProcedureReturn 1
  Else
    ProcedureReturn 0
  EndIf
EndProcedure

Posted: Tue Jan 01, 2008 8:34 pm
by Kwai chang caine
OOOoooohhhh !!
It's still Christmas thanks to netmaestro 8)

I dared not ask the code. :oops:
My empire for 10% of your intelligence

You also have very nice teeth :lol:
One thousand of thanks, my hero 8)

Posted: Tue Jan 01, 2008 9:38 pm
by yrreti
Thanks netmaestro,
That's a nice addition. :D

Posted: Tue Jan 01, 2008 10:04 pm
by Dare
Kwaï chang caïne wrote:You also have very nice teeth :lol:
:lol:

Very funny thread!

And very useful.

Thanks netmaestro!

Posted: Tue Jan 01, 2008 10:41 pm
by PB
> Very funny thread!

And very gross! :)

Posted: Wed Jan 02, 2008 3:35 am
by electrochrisso
If you kiss the netmaestro, does he turn into a Prince. :)

Posted: Wed Jan 02, 2008 9:23 am
by Kwai chang caine
If you kiss the netmaestro, does he turn into a Prince.
It is not serious, i like it, if is a frog, or if is a prince :D
It's my hero 8)

I love also FRED, NETMAESTRO, SPARKIE, GNOZAL, TROND, SROD, FREAK, ABBKLAUS, FLYPE, COMTOIS, .....etc (Excuse me for those i forget :wink:), and all this god of code. 8)

I'm a looser of the code :oops:
For me, they are all magicians, angels, and it's been 3 years that I admire all, since I started purebasic.
So I dream have friends like them. :(

A thousand of thousand thanks at all for the dream that I live. 8)