Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» GG Stuff

Follow us on Twitter!

Get the GG toolbar today (for firefox only)
» Recent Threads
Go to first new post Hey hey now! PotW...
Yesterday 04:34 PM
Last post by Hale'iwa
Today 06:58 PM
19 Replies, 72 Views
Go to first new post can u ask trading...
Today 04:48 AM
Last post by nicki_2036
Today 06:57 PM
4 Replies, 31 Views
Go to first new post Need Suggestions [will...
02-15-2010 09:50 AM
by G3
Last post by FlameSpiritZenon
Today 06:54 PM
23 Replies, 344 Views
Go to first new post Giving Free items on...
03-07-2010 06:47 PM
by Ash
Last post by crashtestdummies
Today 06:53 PM
2 Replies, 48 Views
Go to first new post MotM February Voting!
Today 09:05 AM
by Zombie
Last post by MeinKampfyChair
Today 06:48 PM
8 Replies, 81 Views
Reply
 
LinkBack Thread Tools Display Modes

 [VB] Guide to creating a fully functional gaiaonline program
Old 02-03-2009, 08:07 AM   #1 (permalink)
Banned

Male Checker is offline
 
Join Date: Feb 2008
Posts: 2,646
GPoints: 1,628
iTrader: 8 / 100%
Checker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total Celebrity
Rep Power: 0
[VB] Guide to creating a fully functional gaiaonline program

Before you begin you'll need this file for later use:
http://networkg3.com/tutorial/gaialogin/wrapper.zip or http://g3nation.surf-g3.com/tutorial...in/wrapper.zip ( G3's Host )
Hello all, in this guide I will be teaching you how to make a fully function program in the VB's, both VB.net and VB6.


I will teach you how to make a mass pmer. If you prefer to make a neopets program check out the other thread.

The mass pmer will include the following:
- the ability to pm to multiple users ( a normal pmmer would be just one )
- a gaialogin
- text file support

Lets start with VB.net ( If you do not have VB.net already click the link )

Firstly, open vb.net and create a new project

A new window should come up. Name the project GAIAPM.vb and click OK.
Next you should see a toolbox, and a blank window. You can design how it looks like. First, put 1 button, and two textboxes, then put a groupbox over it. Go over to properties, and make the buttons text "login". Have it look like this.

Now you have a auth, but not the auth code.
Double click the login button and we'll begin on the login code.
Now, take a look at this: [vb6] Basics of HTTPwrapper
Now go to your code, in between
Code:
 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
and
Code:
 End Sub
Follow [VB6] How to make a Gaia Login
Now that you created the login. Make the pm part of the program. Have it look like this:

Double Click send and follow this:
Code:
 Dim strHTML as string

It still has no value, but we want the value to be the POST of sending an pm.
So open up
Live HTTP Headers and
send a pm to "lol", subject: "lol", message: "lmao".
Now take a look at Your Post Data in Live HTTP Headers.
Use this to understand whats going on: http://img187.imageshack.us/img187/1...31a1tmpdl8.jpg ( what I used when I was learning from Doc )
The code you see is not in vb so don't copy it.
So here strHTML should now be that.
Code:
strHTML = wrapper.PostWrapper("http://www.gaiaonline.com/profile/privmsg.php
", "username=lol&subject=lol&message=lmao&preview=&post=&mode=post&src=&folder=inbox&id=&area_code=&pn1=&pn2=&selected_options=&btn_send=true", wrapper.LastPage")
You want the user to have power over whom and what it send


Code:
strHTML = wrapper.PostWrapper("http://www.gaiaonline.com/profile/privmsg.php
", "username="& "notyet" & "&subject=" & txtsubject.text & "&message=" & richtextbox1.text & "&preview=&post=&mode=post&src=&folder=inbox&id=&area_code=&pn1=&pn2=&selected_options=&btn_send=true", wrapper.LastPage")
You want the pmmer to go through the listbox, sending from there so you'll need a for loop.
Code:
For i as integer = 0 to listbox1.items.count - 1  strHTML = wrapper.PostWrapper("http://www.gaiaonline.com/profile/privmsg.php
", "username="& listbox1.items(i) & "&subject=" & txtsubject.text & "&message=" & richtextbox1.text & "&preview=&post=&mode=post&src=&folder=inbox&id=&area_code=&pn1=&pn2=&selected_options=&btn_send=true", wrapper.LastPage") Next i


What this does is it makes it go through the entire listbox.
Now we'll make it so the user can open a txt file into the listbox.

So now you need to double click the open button and follow this:
Code:
Dim i As Integer
Dim OD as new OpenFileDialog
 OD.InitialDirectory            = system.AppDomain.CurrentDomain.BaseDirectory()
          OD.Title = "Open a Text File"
          OD.Filter = "Text Files|*.txt"
          OD.ShowDialog()
  Dim filen as string filen = OD.FileName
 
        w = New IO.StreamReader(filen)
          While (w.Peek() > -1)
            ListBox2.Items.Add(r.ReadLine)
        End While
CONGRATZ!
You finished your first fully functional gaia online program.

CREDITS
Doc ( Doctor , b& ) - for teaching me how to program
Gel ( G3 ) - for helping me when I got stuck in making programs with no complaints

PM me for help, or if I missed a step, since it's pretty late here.

Last edited by Checker; 07-20-2009 at 08:33 AM..
  Reply With Quote

 
Old 05-02-2009, 09:27 PM   #2 (permalink)
Junior Member

Male Assaultrifle109 is offline
 
Assaultrifle109's Avatar
 
Join Date: Feb 2009
Location: Japan
Age: 14
Posts: 8
GPoints: 399
iTrader: 0 / 0%
Assaultrifle109 Is a New Face in Town
Rep Power: 0
Sweet, I was looking for a Vb.Net wrapper
  Reply With Quote

 
Old 06-06-2009, 08:05 PM   #3 (permalink)
Junior Member

Undisclosed JustGotGG is offline
 
Join Date: Jun 2009
Posts: 5
GPoints: 267
iTrader: 0 / 0%
JustGotGG Is a New Face in Town
Rep Power: 0
I can't visit that link..
  Reply With Quote

 
Old 07-20-2009, 08:33 AM   #4 (permalink)
Banned

Male Checker is offline
 
Join Date: Feb 2008
Posts: 2,646
GPoints: 1,628
iTrader: 8 / 100%
Checker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total Celebrity
Rep Power: 0
http://networkg3.com/tutorial/gaialogin/wrapper.zip
  Reply With Quote

 
Old 07-21-2009, 04:52 AM   #5 (permalink)
Banned

Undisclosed Chad is offline
 
Join Date: Jul 2009
Posts: 1
GPoints: 25
iTrader: 0 / 0%
Chad Is a New Face in Town
Rep Power: 0
It's a great Tutorial and everything however you need to declare what w and r are for.
  Reply With Quote

 
Old 07-21-2009, 09:30 AM   #6 (permalink)
Banned

Male Checker is offline
 
Join Date: Feb 2008
Posts: 2,646
GPoints: 1,628
iTrader: 8 / 100%
Checker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total CelebrityChecker - Total Celebrity
Rep Power: 0
w and r are Strings
  Reply With Quote

 
Old 07-28-2009, 09:44 AM   #7 (permalink)
Full Member

Male flexakasuspect is offline
 
flexakasuspect's Avatar
 
Join Date: Jun 2008
Location: Brooklyn Ny
Age: 19
Posts: 150
GPoints: 2,108
iTrader: 0 / 0%
flexakasuspect Is a New Face in Town
Rep Power: 6
Thanks good guide.
__________________

  Reply With Quote

 
Old 09-13-2009, 07:40 PM   #8 (permalink)
Full Member

Male DamienDeath is offline
 
DamienDeath's Avatar
 
Join Date: Sep 2009
Posts: 25
GPoints: 431
iTrader: 0 / 0%
DamienDeath Is a New Face in Town
Rep Power: 2
:O
thanks!
this looks awesome
-gets started on it- ;D
  Reply With Quote

 
Old 09-22-2009, 04:44 PM   #9 (permalink)
Full Member

Male Ozzy123 is offline
 
Ozzy123's Avatar
 
Join Date: Apr 2009
Location: Costa Rica
Posts: 144
GPoints: 0
iTrader: 0 / 0%
Ozzy123 Is Recognizable
Rep Power: 3
I can't enter in this link [VB6] How to make a Gaia Login but i still want make the program somebody can help me out
__________________
HTML Code:
http://ozzy12323.elbruto.es/
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBadvanced CMPS v3.1.0

All times are GMT -7. The time now is 07:02 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.35045099 seconds (100.00% PHP - 0% MySQL) with 21 queries