Results 1 to 7 of 7

Thread: Auto login to website?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Location
    Viet Nam
    Posts
    6

    Unhappy Auto login to website?

    i have a code to login and send mail by smtp of gmail
    http://www.caulacbovb.com/forum/down...fc64e56c8effa8
    Author: truongphu
    Now i wan't program has a form, three text box are text1, text2, text3 and a button
    when click button i't will login to http://paygate.vtc.vn by account: "bank136" and password "123456"
    then go to https://ebank.vtc.vn/home/ebank.mone....html?m=1&l=vi and in Số seri are text 1
    Mã thẻ VTC Online are text 2
    and Tài khoản eBank cần nạp are text3
    and when click button in my form will same as click "nạp thẻ" on website
    And i don't want open any other program
    Can you help me?please

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Auto login to website?


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Location
    Viet Nam
    Posts
    6

    Re: Auto login to website?

    thank you but i don't need code in your topic you send to me
    Can you go to link in my topic and answer my question?
    i want solve it accurate

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Location
    Viet Nam
    Posts
    6

    Re: Auto login to website?

    Are there anyone help me?

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

    Re: Auto login to website?

    assuming you have a webbrowser control (wb)
    vb Code:
    1. wb.navigate2 "http://paygate.vtc.vn"
    2. do until wb.readystate = 4  'wait for page to load
    3.   doevents
    4. loop
    5. with wb.forms(0)
    6.   .all("LoginControl$txtUserName").value = "bank136"
    7.   .all("LoginControl$txtPassword").value = "123456"
    8.   .submit
    9. end with
    10. do until wb.readystate = 4  'wait for login to complete
    11.   doevents
    12. loop
    13. wb.navigate2 "https://ebank.vtc.vn/home/ebank.mone....html?m=1&l=vi"

    i have no idea what is in your textboxes, or what you want to use them for

    and don't bump your threads
    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

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Location
    Viet Nam
    Posts
    6

    Re: Auto login to website?

    how can i use webbrowser control? please help me
    are there anyone help me solve my question accurate?

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

    Re: Auto login to website?

    are there anyone help me solve my question accurate?
    we only give assistance, don't write program for you

    go to menu > project > components > microsoft internet controls

    add control to fom
    name webbrowser wb or change code to match name of webbrowser control

    put code above into command button or form load
    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