Results 1 to 5 of 5

Thread: Auto Fill username and password

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    Auto Fill username and password

    Hello guys!

    I want to autofill the username and password field by my vb program. My Program contains webbrowser control
    and needs to autofill and invoke the signin button.

    I already have the experience with autologin of gmail,yahoo... But here my problem is i cant find the tag name or name of the field which i want to fill the value...

    Here the url which i want to autofill : http://webuzz.im/mail/

    Its just look like gadget something, how to do? any help would be appreciated!

    Advance thanks
    _____________________________________________
    Regrads,
    kpmsivachand

    Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead;
    Walk beside me, and just be my friend.

    Need Reviews: 1. PDF Split, PDF Merge, PDF Encrypt, PDF Decrypt and PDF Watermark

    Need Reviews: 2. Folder Locker | Lock Folder | File Locker | Locker | Encrryption | Encrypt

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Fill username and password

    you can fill the boxes like
    vb Code:
    1. wb.Navigate2 ("http://webuzz.im/mail")
    2. Do Until wb.readystate = 4
    3. DoEvents
    4. Loop
    5. Set ele = wb.document.getelementbyid("login-box").document.getelementsbytagname("input")
    6. ele(0).Value = "pete"
    7. ele(1).Value = "password"
    but filling them by code does not run the javascript to enable the sign in button
    you can click the button like
    vb Code:
    1. Set ele = wb.document.getelementbyid("login-box").document.getelementsbytagname("button")
    2. ele(2).Click
    but this will do nothing until the button is enabled
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    Re: Auto Fill username and password

    First of all thanks and Sorry for late reply! Let me try out now and post...
    _____________________________________________
    Regrads,
    kpmsivachand

    Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead;
    Walk beside me, and just be my friend.

    Need Reviews: 1. PDF Split, PDF Merge, PDF Encrypt, PDF Decrypt and PDF Watermark

    Need Reviews: 2. Folder Locker | Lock Folder | File Locker | Locker | Encrryption | Encrypt

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    Re: Auto Fill username and password

    Quote Originally Posted by westconn1 View Post
    you can fill the boxes like
    vb Code:
    1. wb.Navigate2 ("http://webuzz.im/mail")
    2. Do Until wb.readystate = 4
    3. DoEvents
    4. Loop
    5. Set ele = wb.document.getelementbyid("login-box").document.getelementsbytagname("input")
    6. ele(0).Value = "pete"
    7. ele(1).Value = "password"
    but filling them by code does not run the javascript to enable the sign in button
    you can click the button like
    vb Code:
    1. Set ele = wb.document.getelementbyid("login-box").document.getelementsbytagname("button")
    2. ele(2).Click
    but this will do nothing until the button is enabled
    Your code is working perfectly, but need to enable the button to automate...

    Is it any other way to enable the sign in button while form loading???
    _____________________________________________
    Regrads,
    kpmsivachand

    Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead;
    Walk beside me, and just be my friend.

    Need Reviews: 1. PDF Split, PDF Merge, PDF Encrypt, PDF Decrypt and PDF Watermark

    Need Reviews: 2. Folder Locker | Lock Folder | File Locker | Locker | Encrryption | Encrypt

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Fill username and password

    turns out to be really simple
    vb Code:
    1. ele(2).disabled = False
    before the click
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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