Results 1 to 3 of 3

Thread: DIFFICULT! Sending text to a textbox within a webpage

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    21

    Exclamation DIFFICULT! Sending text to a textbox within a webpage

    Is there a way of using API to send text to a textbox within a webpage??

    For example if I want to log into eBay automatically. Would it be possible to find the hwnd of the username textbox and the password textbox then send the appropriate text to each, followed by clicking "sign in".

    I have been stuck on this for ages, so please help me.

    Thanks

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: DIFFICULT! Sending text to a textbox within a webpage

    The web componets doesn't expose their own hWnd, but you can use the HTML DOM to do this. There are many example on how to do this available on this site.
    http://www.vbforums.com/showthread.php?t=373652

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    21

    Re: DIFFICULT! Sending text to a textbox within a webpage

    Thanks for your quick reply. I have heard of the html dom before, but I have never really understood it properly.

    Would you mind showing me a bit of code which would work for the example I gave originally (e.g. automatically logging onto eBay).

    I would be so grateful if you or anyone else could show me how to do this.

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