Getting the text from another application

This is a discussion on Getting the text from another application within the Windows Programming forums, part of the Platform Specific Boards category; Hi there, Let's say, I want to retrieve the text from a specific Edit Control on another running application. Could ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    8

    Getting the text from another application

    Hi there,

    Let's say, I want to retrieve the text from a specific Edit Control on another running application.

    Could you please explain to me, how I can do this?

  2. #2
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    Which technique would you like?

    Easiest would be FindWindow() / SendMessage()

    Hardest would be code injected into target process and ReadProcessMemory()

    All functions documented on MSDN (msdn.microsoft.com).

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    8
    Right now i'm not interested to know much details,I just want to get my job done.
    Therefore I would prefer the easy way,if possible.

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    245

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    8
    Thank you very much.

  6. #6
    Registered User
    Join Date
    Jun 2003
    Posts
    8
    Thank you for the previous reply.
    I understand how to use the SendMessage() to retrieve the text.
    The problem is with the FindWindow().
    Let's say that the other application is Test.exe
    I can get the window handler, of the application by using FindWindow(NULL,"Test").
    But If I use SendMessage with this handler, I only get the text "Test", which is the title of the window.
    I don't need this.

    How can I find the handler for a specific Edit Control,which is inside of Test.exe?
    What data do I need to know to identify it?
    Last edited by chrischar; 08-10-2003 at 07:00 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 01:23 AM
  2. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 02:59 PM
  3. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 03:17 PM
  4. Replies: 1
    Last Post: 07-13-2002, 06:45 PM
  5. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 10:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21