|
-
Feb 14th, 2010, 08:31 PM
#1
Thread Starter
New Member
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
-
Feb 14th, 2010, 09:17 PM
#2
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,...
-
Feb 14th, 2010, 09:50 PM
#3
Thread Starter
New Member
-
Feb 15th, 2010, 12:38 AM
#4
Thread Starter
New Member
-
Feb 15th, 2010, 04:32 AM
#5
Re: Auto login to website?
assuming you have a webbrowser control (wb)
vb Code:
wb.navigate2 "http://paygate.vtc.vn" do until wb.readystate = 4 'wait for page to load doevents loop with wb.forms(0) .all("LoginControl$txtUserName").value = "bank136" .all("LoginControl$txtPassword").value = "123456" .submit end with do until wb.readystate = 4 'wait for login to complete doevents loop 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
-
Feb 16th, 2010, 10:34 PM
#6
Thread Starter
New Member
Re: Auto login to website?
how can i use webbrowser control? please help me
are there anyone help me solve my question accurate?
-
Feb 17th, 2010, 01:27 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|