Results 1 to 5 of 5

Thread: Get handles to Textboxes of other apps

  1. #1

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    I know, this has been discussed yet but I none of the answers I saw worked when I tried it. Well, I want to find out, what's in the textbox of some application and change it. I think it was Aaron Young who recently posted some answer to this, but I couldn't figure out what I was doing wrong.
    I have the handle to the application, but
    lChildWnd = FindWindowEx(lHwnd, lChildWnd, "Edit", vbNullString)
    always returns zero. Where is the problem?


    ------------------
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

  2. #2

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    Doesn't anyone know!?

    ------------------
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Maybe that application has another child window between lHwnd and lChildHwnd. You have to check if the main window has multiple chilren before it gets to the Edit box. Using Spy++ you can find out if it does. By the way, what program are you trying to get the Textbox from? Maybe knowing the exact program (and if some of us have it installed) we can be more helpful to you.

    ------------------

    Serge

    Senior Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819

  4. #4

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    I'm trying to get the content of an ICQ message. I want to make something for automated replies.


    ------------------
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

  5. #5

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    maybe it would be the best to enumerate all childwindows. do you know how this can be done?
    I'd need the content of the labels, too, so that I know who's the message from.


    ------------------
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

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