Results 1 to 6 of 6

Thread: API Thing...help

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    20

    API Thing...help

    I was wondering....


    Say for example I had notepad open. Notepad contains a textbox of some kind, yes? How can I grab the contents of that text box via the API (IE, I dont want to have to copy/paste the code using AppActivate and SendKeys)?

    Is it possible?

    Any help at all would be greatly appreciated.

  2. #2
    DerFarm
    Guest
    It might be easier to force NotePad to save to a dummy file, and
    then read in the file.

    I'm not at all sure the NotePad uses a textbox, per se.

  3. #3
    Member
    Join Date
    Jan 2002
    Location
    India
    Posts
    50
    wow
    hey der,Ialways thot notepad had a txtbox that resized with the form!

    well, Chaoticmass, in case it is, then you could also sendkey ctrl-c to it and paste in your app.

    there is an api fn i think ...y notsearch google or something - if i find it first i'll post it right here...
    So watch this space...!

  4. #4
    Addicted Member Virtual24's Avatar
    Join Date
    May 2001
    Posts
    228
    To protect time is to protect everything...

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    20
    I was only using Notepad as an example. I'd like to be able to spy on the content of any textbox, if that it at all possible.

    Thanks for your time.

  6. #6
    Addicted Member Virtual24's Avatar
    Join Date
    May 2001
    Posts
    228
    Like i said... check out www.vbapi.com and go to the Reference section..... It has a list of all the API calls associated with VB and tells u how to use them and what it does.

    I think you will want to use the SendMessage call... you can find out the constants to use that have to do with notepad at www.microsoft.com.
    Last edited by Virtual24; Feb 21st, 2002 at 06:10 PM.
    To protect time is to protect everything...

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