Jump to content

Communication between applications / Datagrid

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
devwdapi

devwdapi

    Newbie

  • Members
  • Pip
  • 1 posts
Hi all,

I’m making an application which must access data in the windows of other applications (applications made by other companies).
To find the window of the other applications I find the ‘Handle’ which allow Microsoft Windows to identify all the elements existing in the interface.

My problem is that I can not access data available in components like dataGrid, stringGrid, … where MS Windows only see one handle of one window for the whole set of elements in the dataGrid.

I use the software ‘Greatis Windowse’ to identify the ‘handle’ of each element (where I can see the class of the elements too). For example I can easily identify all those elements : the application main window, the text field, the button :

Image at: www DOT magic-soft.net/PostsImages/capture1.PNG

So I can easily retrieve the text in the text area and force the click of the button [with PostMessage(TheHandle,WM_LBUTTONDOWN,MK_LBUTTON,0)]

But with the same functions when I want to know information about the stingGrid, I have only one handle which identify the object in its whole entirety (whatever the part of the object I ask).

Image at: www DOT magic-soft.net/PostsImages/capture2.PNG

I want to retrieve for example the text in the ‘B2’ box.
How can I do that ? Any idea is welcome.

Regards,


DevWDApi

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,715 posts
This should help.
Win32 Subclassing

You'll have to know the control that the window is using to access the data for it.