I am performing a CaptureText () on a screen followed by a messagebox to display what I capture. Apparently I am not capturing the whole screen. It is stopping at capturing 2158 characters, which only allows me to see 1/2 to 3/4 of the information. What can I do to capture the whole screen. I did a search on this site, but did not see anything relevant to what I needed. Thanks
Its not a char limitation, but rather how CaptureText works. CaptureText is not property of an object (like .Text) but rather you are calling a windows API to return all of the screen visable text.
Its going to depend on what env you work with, to determine the best appraoch. For example in web, you can loop through the HTMLTD object(s) and use InnerText to pull the data into a variable then do an Instr. Or you can capture text into an array (or to a temp flat file on the machiine) using the scroll a few times to get all the text.
Thanks for responding. I see what your saying and I should be a little more specific. I am trying to capture a 3270 or emulator screen where there is no object to identify with. Can you give a suggestion on how to do this?
I have been able to make this work, but have had issues capturing all the data and displaying it in a messgae box. I can't seem to make the box large enough to display all the text. I can't even display all of the data fom just one of the captures. Is there any other way I can manipulate this so I can display the entire text in the msgbox???
don't use a msgbox, you will just end up with more limitations on size. Try creating your own userform or a textbox or even a little html window to pop up and display everything for you. There are less limitations on these types