Dean Guest
|
Posted: Wed Nov 26, 2003 11:18 pm Post subject: Stuck trying to find an edit with FindWindowEx |
|
|
Hi,
I've got a bit stuck with something. I'm trying to interface with another
application and set a few of it's edit boxes. The problem is this other
application has about 6 edit controls (it has two combo boxes also I need to
interface).
Doing this:-
Edit1 := FindWindowex(W, 0, 'Edit', nil);
Edit2 := FindWindowex(W, 0, 'Edit', nil);
produces spurious results as it doesn't seem to grab the same ones each
time.
If I look at the objects in WinSight, I see there's a location reference,
like this:-
Window rect in screen : (-3926, -31706)-(-31810, -31605)
Window rect in parent : (74,294)-(190,315)
Client rectangle : (0,0)-(116,21)
As I know that these objects are always in the same place in this app. can I
use any of these references to find the particular edit and combo box I'm
after?
If so, what would be the windows API call and parameters?
Many thanks,
Dean
|
|