View Single Post
  #2  
Old 10-30-2005, 07:20
aldente aldente is offline
VIP
 
Join Date: Jul 2003
Posts: 266
Rept. Given: 27
Rept. Rcvd 7 Times in 5 Posts
Thanks Given: 36
Thanks Rcvd at 10 Times in 9 Posts
aldente Reputation: 7
OK, this Delphi line does exactly, what I want:

Code:
SetWindowText(FindWindowEx(FindWindow('TADCPwnd', nil), 0, 'TEdit', 'punkrock'), 'my tiny little value');
Quite a lame solution, but it works quite well. Plus the Edit-Box has an OnChange-event, so there is not even need for a button! Everything is done within this single line.
The values are all constants except "my tiny little value".

I looked in my debugger what this code looks like in Assembly language, result:

http://home.scarlet.be/~il095280/functioncall.gif (only ~ 4KB)

How to insert the function-calls to FindWindowExA and FindWindowA into the other program? Only SetWindowTextA is used on other locations in that program.


Please help me!

Last edited by aldente; 10-30-2005 at 07:24.
Reply With Quote