Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

I was asked to get some text data from an another form, getting most of the data -from labels, and textboxes- were easy with an AutoIt script, but I have to get some data from a DataDridView controll also. Unfortunately it seems cell data cannot be obtained this way, in visible text, or hidden text I get some general info from the control. Either if I tried to send tabs and copy to clipboard I got only the string cell data, but from numeric cells I got only 'System.Drawing.Bitmap' text :(
It seems this application built in c++, I have found some .pdb file next to it starting with text of 'Microsoft C/C++ MSF 7.00'.

Is there any other way to 'steal' data from other forms, or anyone knows other way to use AutoIt to get cell data from a datagridview?

Any advise is welcomed.

Thank you!
Adam
Posted
Comments
nv3 28-Oct-13 8:16am    
It would be most scary if you could get to the internal data of another application that easy. By the design the operating system should protect applications from being manipulated in such a way. Hence, don't keep your hopes up that this will work. Instead I would try to implement a regular interface to that application using sockets or some other inter-process communication in which both parties participate.
CzimerA 28-Oct-13 8:54am    
I wish I can do, unfortunately the developers of the application could not implement an interface yet, the duedates are over, and everyone wants a solution for that. Anyway I highly agree with your comment.
Code-o-mat 1-Nov-13 6:46am    
I never worked with MS' DataGridView so what i am saying here is purely "out of the air", but, couldn't you try to inject a DLL (if you don't know what this means, just search for "DLL injection" here on CodeProject or on Google), find the data-grid by handle or class-name or some other way and then send messages to it to query data from cells (as said, i am not familiar with this control so i don't know if this would be possible) and then return this data to your other process thorough a socket or pipe or whichever inter-process communication you might prefer?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900