|
-
August 31st, 2001, 08:13 AM
#1
Getting text from other applications.
For a Microsoft Word Document I can determine that the main document body is in a control of class _WwG, and currently has a handle of &H70506
Yet despite the document containing visible text the GetWindowText function returns "". Is there any way I can get the actual text content of another window (not just for MSWord but textual contents of any application's window)
Thanking you in advance,
Martin Smith
-
September 3rd, 2001, 08:59 AM
#2
Re: Getting text from other applications.
dim a as scripting.filesystemobject
dim b as scripting.textstream
set a =new filesystemobject
set b=a.opentextfile(...)
you do not have to use api.
you can read/write to a textstream object
KIK
-
September 3rd, 2001, 09:38 AM
#3
Re: Getting text from other applications.
Hi KIK,
Thank you for your reply but just to clarify, I was using the Word Document as an example to illustrate what I want to be able to do (as the actual text I am trying to extract is from a document management system that I suspect fewer people have used). I was hoping to use the same technique of getting text from a control with a known hwnd for my own ends - it is a property dialog which I am trying to interrogate.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|