Hooking Controls On A Webpage


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Hooking Controls On A Webpage

  1. #1
    Join Date
    Feb 2005
    Posts
    1

    Hooking Controls On A Webpage

    Hello all. I am desperate for help. I have a vendor who has changed the format for his file download. I used to have an automated process that would get a file from an FTP server. He has done away with that, and now has a .NET web page with a sign in, which uses a database table to look up login names. My application is in VB6. What I would like to do, is open his webpage, enter my sign in name and password into the text boxes, and press the "OK" button. after this, I need to press a "GENERATE" button, then finally link to the URL provided (so that's 3 seperate pages on the site). I have all of the names of his controls, what I would love to know, is how to hook these controls from my VB6 app, and simulate the typing, and button pressing. Can anyone help??

    Thank you,

    Kevin

  2. #2
    Join Date
    Feb 2005
    Posts
    103
    Create A TextBox For User:
    with...
    Code:
    Option Explicit
    Dim User As String
    Dim User2 As String
    Dim UserName As String
    
    Private Sub UserText_Change()
    User = "Http://www.yoursite/login/user/ and all this crap" 'this is site login
    User = "/asldasldasl.php" 'this is the last part after the username
    UserName = usertext.text ' this is there site username
    If UserText.CausesValidation = True Then
    WebBrowser.Navigate2(User + UserName + User2)
    End If
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center