Results 1 to 8 of 8

Thread: Auto fill username and password

  1. #1
    vintage_car
    Guest

    Exclamation Auto fill username and password

    Here we go Internet VB guy's... I want to have a screen that takes up the entire screen when this "Mail" button is clicked. This screen needs to stay on top unless inactive for 30-45 seconds, then it auto-closes, or it closes when info is entered into it. I want this screen to have 2 text boxes one for a username and one for a password. When this is submitted I want it to submit the username and password to the username and password on Yahoo's mail account.
    (this next part is optional, but would be great) If it is correct I want it to display the users email account, if it isn't then I want it to display a message saying "Sorry Charlie...".
    I'm using VB5 for this and any help is greatly appreciated!

    Thks guys,
    Matthew C.

  2. #2
    vintage_car
    Guest

    simplified question

    How do you take a password and login from one screen and place it in the login and password of Yahoo mail. I know yahoo mail comes up with the prompt in the username, I just don't know how to pass it what I have entered?

    tks,
    Matt

  3. #3
    rsitogp
    Guest
    Webbrowser1.Document.a.login.value = Form1.txtUsername.text
    Webbrowser1.Document.a.passwd.value = Form1.txtPassword.text
    Webbrowser1.Document.a.submit
    msgbox "Enjoy!, Logging into yahoo mail!"

  4. #4
    New Member
    Join Date
    Feb 2011
    Posts
    5

    Question Re: Auto fill username and password

    i successfully opened the webpage using webbrowser1.navigation control
    now
    the problem is - when i use Webbrowser1.Document.a.login.value statement
    program shows error msg Run Time error "91"
    Object variable or with block variable not set

    however,my pc only execute webbrowser1.document
    please help me as early as possible
    thx

  5. #5
    New Member
    Join Date
    Feb 2011
    Posts
    5

    Re: Auto fill username and password

    no one replied yet

  6. #6
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Auto fill username and password

    Welcome to the forums!

    "Webbrowser1.Document.a.login.value" is just an example... you have to find the correct "path" to the control by looking at the HTML of the page you want to do this...

    Another way, is to make a loop in your code that does a "search" for your control in the page/document then returns the control's object, then you can set the value.


    By the way, the thread you replied is a 10 year old thread!
    Next time create a new thread and copy & paste the link to the thread you want to talk about.

  7. #7
    New Member
    Join Date
    Feb 2011
    Posts
    5

    Re: Auto fill username and password

    thx sir

    i am trying to pass username and password to yahoo mail page
    and then hit the Sign In button by code i.e. open yahoo mail

    may u please write sample 4 me
    thx

  8. #8
    New Member
    Join Date
    Feb 2011
    Posts
    5

    Re: Auto fill username and password

    i was trying webbrowser1.Document.All.Item("username").Value = "abc"

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