CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Posts
    4

    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


  2. #2
    Join Date
    Sep 2001
    Location
    Elmshorn, Germany
    Posts
    8

    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

  3. #3
    Join Date
    Aug 2001
    Posts
    4

    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
  •  





Click Here to Expand Forum to Full Width

Featured