And therefore you do not know whether to try API's to get text from the child terminal window or require to use OCR, using an So you basically do not know if the child terminal window actually has text in it and not just a drawing of text in it. Thing manually, If I can capture the text via vb with a mouse double click for example, then store the text to a text file and I got it from there :) Hope this make it more clear, Thank you, I thought by capturing the text, I can save time inputting every Line of text that is require some math for each line then I have to re input the new information to that terminal via a child textbox inside that terminal, My application will do the math etc. For example typing one command in the other application will output several I can capture the text from the terminal with Snagit and past it inside notepad, The reason I am making this application is to make this other application more user friendly. Snagit is application by Techsmith that capture images, web pages and text from the However this terminal will not allow copy or cut. I apologize for not making my question more clear, The other application has a child terminal that output text. #DELPHI GETWINDOWTEXT FROM ANOTHER PROCESS HOW TO#How to use one, can scrape text from a screen capture. Perhaps you will need to use an OCR library and screen capture the image of the other app so the OCR library, once you programmatically understand You can not get text if there is no string displayed in an external applications window using API's to get text. You say SnagIt can provide the text from a screen capture so I suppose it is using OCR. Perhaps it uses OCR to scrape text from an image since you say it performs screen capture. It may be displaying an image with text drawn in it or string drawn in image control. You may be able to read text from a display window of another app however that does not mean the other app is displaying a string of text. I know how to do everything else minus the text capture. The other application does not have edit mode (cut, copy and paste) so I can not select and copy (even with Ctrl + C), however I can capture the text of this application using Snagit In my application, to make the other application more user friendly. net application will display text (contain info that I need to calculate and re enter it in that application) I am interest in capture and process this info I have an application that I would like to capture the text of another application. That's why I suggested a bit more time with SPY to reconcile that report with what you can see in the app. If there was a text box listed as a window of that form it would be obvious. It's not clear from the Spy report exactly where that text is hosted. If the text really is the text of the form, that will give you what you want. #DELPHI GETWINDOWTEXT FROM ANOTHER PROCESS WINDOWS#Windows are, it is easier to do it sequentially. When you get the handle for the Terminal window, do GetText, and see what the result is. This would typically be done using recursion, but since you know from the SPY report exactly how far down you need to go and exactly what the From the lookĪt that you then need to execute GetChildWindows() to two more levels to get to the 'Terminal' window. If you can get that text, then the GetChildWindows() method should return something similar to what you saw in first level of the SPY report. 'MainProgram.exe' according to your image - to get to the top level window of the app. You would change the title of the top level window to the title . Without the application it's not possible to be more specific. #DELPHI GETWINDOWTEXT FROM ANOTHER PROCESS CODE#You indicated that you have that code converted and working for Notepad - that's your best example. How would you do it? I am not very knowledgeable in this kind of VB programing. Your last reply was helpful, Would you please provide an example for my situation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |