Results 1 to 6 of 6

Thread: Auto-fill Web Form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414
    Thakns but I think you misunderstood or I am. I want to fill a text box in IE, not my own browser control. The way some submission programs work to fill the fields. Also kind of like that AL Robo Form does

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    You have to create an Active X plugin for IE that you interface through.

    Unfortunately, this is way out of my league.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414
    Mine too but thanks anyway.

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Reference "MS Internet Controls" and "MS HTML Object Library".

    VB Code:
    1. Dim ie As SHDocVw.InternetExplorer
    2.     Dim sw As SHDocVw.ShellWindows
    3.     Dim doc As MSHTML.HTMLDocument
    4.     Dim inp As MSHTML.IHTMLElement
    5.    
    6.     Set sw = New SHDocVw.ShellWindows
    7.    
    8.     For Each ie In sw
    9.         If TypeOf ie.document Is HTMLDocument Then
    10.             'it's a HTML document (rather than explorer window)
    11.             'you can manipulate it via MS's HTML DOM
    12.         End If
    13.     Next
    14.    
    15.     Set sw = Nothing
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414
    Thank you. I'll see if I can figure out how to use it. Appreciate the help

  6. #6
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    Originally posted by JoshT
    Reference "MS Internet Controls" and "MS HTML Object Library".

    VB Code:
    1. Dim ie As SHDocVw.InternetExplorer
    2.     Dim sw As SHDocVw.ShellWindows
    3.     Dim doc As MSHTML.HTMLDocument
    4.     Dim inp As MSHTML.IHTMLElement
    5.    
    6.     Set sw = New SHDocVw.ShellWindows
    7.    
    8.     For Each ie In sw
    9.         If TypeOf ie.document Is HTMLDocument Then
    10.             'it's a HTML document (rather than explorer window)
    11.             'you can manipulate it via MS's HTML DOM
    12.         End If
    13.     Next
    14.    
    15.     Set sw = Nothing
    this is good code but how do I detect which IE is the active window?

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