ThyElite Forums  
Go Back   ThyElite Forums > MyCoke Talk > Cheat Talk
Reload this Page A basic MyCoke login in Visual Basic 6
Reply
 
Thread Tools Display Modes
(#1)
Old
DefectiveProduct is Offline
The Best
DefectiveProduct is on a distinguished road
 
Posts: 771
Join Date: Jul 2006
Location: O_o
Default A basic MyCoke login in Visual Basic 6 - 07-14-2006, 08:56 PM

Well since I don't see any tutorials posted, I figure I would make one.

This is Visual Basic 6. If you don't have it, don't understand it or don't know what it is, don't bother to read it or ask questions. This stuff is really simple.

You will need two forms, a web browser and some buttons and two textboxes.

To insert a web browser, in VB go to Project > Components and scroll down to the components that begin with the letter M. Find "Microsoft Internet Control" and tick the box located to the left of it and hit APPLY. A little earth icon will appear in your toolbar.

Now, everyone can do things differently and I choose to use a seperate form for the login prompt. You can use a frame or put it on the form with the browser or whatever you want.

Form1 will be the browser and Form2 will be the login prompt.

In Form1, draw a browser using the earth icon you set in earlier. Then make a command button somewhere on that form. This button will bring up the login form, Form2. Double click the command button and insert this as the coding.

Code:
Form2.Show
And you're done as far as Form1 goes.

Now go to Form2 and insert two textboxes. Name one "txtemail" and the other "txtpass". txtemail is the textbox for the logins email and txtpass is the textbox for the password. You can use labels or make the default text in the textboxes to indicate what field the texbox is for. In my example I made the default text of txtemail "E-mail address" and the default text of the txtpass "Password". Now draw a command button and double click it and insert this coding.

Quote:
Form1.WebBrowser1.navigate "https://secure.mycoke.com/ssldocs/login.do?emailAddress=" & txtemail.Text & "&password=" & txtpass.Text & "&bRemember=true"
Unload Me
This navigates the browser on Form1 to the MyCoke login url and replaces & txtemail & with the text entered in the textbox for the users email, and & txtpass & with the text entered in the password textbox.

Thats all there is to it. This isn't exactly one of my best tutorials. I've written some a hell of alot better than this. Dunno why this one didn't come out so well. :|







Last edited by DefectiveProduct : 07-18-2006 at 11:24 PM.
Reply With Quote
(#2)
Old
mjmorrell is Offline
1337
mjmorrell is on a distinguished road
 
Posts: 254
Join Date: Jun 2006
Location: San Diego
Send a message via AIM to mjmorrell
Default 07-15-2006, 07:15 PM

I believe that is vb.net


Hip Hop Be Bop (Don't Stop) :k:
Reply With Quote
(#3)
Old
DefectiveProduct is Offline
The Best
DefectiveProduct is on a distinguished road
 
Posts: 771
Join Date: Jul 2006
Location: O_o
Default 07-15-2006, 07:42 PM

No. Visual Basic 6. o_o






Reply With Quote
(#4)
Old
mjmorrell is Offline
1337
mjmorrell is on a distinguished road
 
Posts: 254
Join Date: Jun 2006
Location: San Diego
Send a message via AIM to mjmorrell
Default 07-15-2006, 07:43 PM

Code:
 Form1.WebBrowser1.navigate
Using the form1 before the actual component is usually vb.net syntax O_o


Hip Hop Be Bop (Don't Stop) :k:
Reply With Quote
(#5)
Old
Aggression is Offline
Member
Aggression is on a distinguished road
 
Posts: 14
Join Date: Jun 2006
Default 07-16-2006, 09:23 AM

Thank you SO MUCH Defective Product, I followed the tutorial, and everything went great. Thanks again.
Reply With Quote
(#6)
Old
oOD-richOo is Offline
1337
oOD-richOo is on a distinguished road
 
Posts: 204
Join Date: Jul 2006
Default 07-18-2006, 06:11 AM

what does upload do?


Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic 6 xplogen Requests 5 10-21-2006 05:01 AM
Need Visual Basic 6 TAG General Talk 0 10-10-2006 10:24 PM
Need Visual Basic 6 TAG General Talk 0 10-10-2006 09:29 PM
Visual Basic 6 Masked Requests 3 08-22-2006 07:44 PM
Visual Basic Help? Sifter Help! 4 07-29-2006 01:55 AM



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.