BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FindWindowEx

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Ryan Styles
Guest





PostPosted: Mon Jan 09, 2006 3:17 pm    Post subject: FindWindowEx Reply with quote



Hi folks.

I am trying to get the text out of the bottom text window from the
TeamSpeak 2 client, but my code simply is not working. Any help on
this would be wonderful as I am at a loss here.

code:

Wnd := FindWindow('TMAINFORM', 'TeamSpeak 2');
TSLogChild := FindWindowEx(Wnd, 0, 'TRichEditWithLinks',
'reMessages');
SendMessage(TSLogChild, WM_GETTEXT, SizeOf(Buffer),
Integer(@Buffer));
//GetWindowText(TSLogChild, Buffer, 255);
Memo1.Text := Buffer;

code:

The buffer is always empty. This works with Notepad, but I cannot get
it to work with the TS2 (http://www.goteamspeak.com/) client at all.

The window names I have I got from MS-Spy++.

Thanks in advance,

Ryan
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.