Re: Intercept messages of an app.



Note that this assumes the text being displayed is represented as a string; if it were an
owner-draw listbox it will also require reverse-engineering the ItemData field. (Example:
my "logging listbox" is an owner-draw control where each type of line is a different
subclass of the abstract log message class)
joe

On 10 Aug 2006 08:28:18 -0700, "Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote:

I have a logging application that fills a listbox window.
I don't have access to the source code of that app. and
I want to store the logs into a text file..

Is there a way for a separate application to log strings
sent to this listbox (and send the strings into a text file)?

What APIs should I look after.. what about spy++?

Yes, you can do it by using hooks (SetWindowsHookEx). In this case you
will have a process wide hook. Look at MSDN to see what type of hook
would be needed.

---
Ajay
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: AutoComplete ComboBox Search on Substring for KeyPress
    ... AutoCompleteSource properties of the combobox, ... The second is a ListBox (mine is named ArtistNameList. ... list of strings and those strings will be bound to the listbox. ... Private Sub ArtistName_TextChanged(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Array oder Listbox?
    ... > zwischen Strings berechnen soll und mir als Beispiel ... > einen Vergleich zwischen Ortsnamen in einer Datenbank ... Z.B. weil man ja einer Listbox ... Du wirst mit einem Array immer besser fahren als mit einer ListBox, ...
    (microsoft.public.de.vb)
  • Re: Copy TStringList to TListBox
    ... I have a TStringList containing some strings, ... I wish to copy this list to a TListBox, ... but it seems that this only assigns pointers to the original ... These are normally pointers to objects (ie a TObject refererence) but ...
    (comp.lang.pascal.delphi.misc)
  • Re: Array oder Listbox?
    ... > zwischen Strings berechnen soll und mir als Beispiel ... > einen Vergleich zwischen Ortsnamen in einer Datenbank ... > schon doppelte entfernt, und 16.000 der Telekom. ... Z.B. weil man ja einer Listbox ...
    (microsoft.public.de.vb)
  • Re: how to change color of font or background on listbox
    ... You can use an owner-draw listbox. ... can do anything you want, including changing fonts, using specific ... how to change color of font or background in listbox? ...
    (microsoft.public.vc.mfc)