View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
clu clu is offline
external usenet poster
 
Posts: 4
Default GetText Client Access AS400 window API Help

Patrick Molloy wrote:
if you can access text from mote[pad then presumably there's a text file
somewhere? Why don't you just import the text file or read the data from
it... see the "OPEN" method in help


Patrick,

Thank you for your response. It appears I was unclear or am unclear as
to your reply. The code, which I found in this group, works with the
Edit window of Notepad to get text in that window by using its Handle.

The AS400 window displays text that I can copy both manually and with
code. I tried using the same approach (using posted code) to get the
text from the AS400 window (which I have the handle) as I did with
Notepad without success. The Client Access has two processes running
pcscm.exe and pcsws.exe. I don't know which way to go from here and
was hoping to get some direction if not a solution. I am relatively
new to API but I believe it is my lack of understanding of how text is
displayed in this window that has me at a stand still. If anyone has
information on how data is transferred and displayed in a terminal
emulator or can point me to such information I would appreciate it.

I am hoping that the text can be retrieved easy enough and I am just
using the wrong API Function. When I use this code on the Main window I
do successfully get the Text in that window which is the Title. Since
the window that contains the text I wish to get has no title and that
is what I get "nothing" I feel I am using the wrong API call.

Thanks again for any assistance.