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
» Recent Threads
Go to first new post Im Selling Roughly 76m...
Today 03:20 AM
by venture
Last post by ASHTEHCOMMIE
Today 07:12 AM
27 Replies, 28 Views
Go to first new post Looking to buy 1-2...
Today 06:33 AM
Last post by Arsenal
Today 07:12 AM
6 Replies, 7 Views
Go to first new post [PC]Account
Today 07:11 AM
by Kaze
Last post by Kaze
Today 07:11 AM
0 Replies, 1 Views
Go to first new post FIFA 08 fans in here!
07-22-2008 06:27 AM
Last post by venture
Today 07:11 AM
1 Replies, 2 Views
Go to first new post Sex before Marriage?
08-18-2008 04:15 AM
by mika
Last post by terinuptrash
Today 07:10 AM
42 Replies, 43 Views
Reply
 
LinkBack Thread Tools Display Modes

 Making A program go to a link. (Vb6)
Old 05-07-2007, 03:49 PM   #1 (permalink)
I raep babies.
 
omgcat is offline
Join Date: May 2007
Posts: 61
iTrader: 0 / 0%
omgcat Is gaining popularity
Rep Power: 4
Making A program go to a link. (Vb6)

So you have been wanting to learn how to make things go to links?

Well here is how.. I will post the whole code then break it up.

Your wrapper should be called w for this to work..

Code:
w.GetWrapper "http://www.neopets .com/pirates/academy.phtml?room=2", "http://neopets .com/"
Ok First this part:

Code:
w.GetWrapper
This is telling the program to take the link, and go to it.

Code:
"http://www.neopets .com/pirates/academy.phtml?room=2", "http://neopets .com/"
This code will tell the program what link you want it to go to. But you always need the comma after the first link, a space, then the second link.

That is how you program a code to get to a site.
  Reply With Quote

 
Old 05-07-2007, 11:19 PM   #2 (permalink)
VIP Member

 
second2none is offline
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,026
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
Rep Power: 15
err.. this is only if you have HTTPwrapper.

Other wise you will haveto use Winsock, Inet or another wrapper.
__________________
This is from:
Screenies Of A Mod
Code:
How did you do it? FLP , jotform, some other form of hacking? - First Class Noob
Lawl.. funny shit.

Quote:
Originally Posted by Kore
By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive.
Lawl Ownt

Hoes forgot to eat a dick and shut the FUCK UP!
  Reply With Quote

 
Old 05-08-2007, 03:25 PM   #3 (permalink)
jewellui
Guest
 
Posts: n/a
iTrader: / %
Rep Power:
How would i make a program that loads a notepad url list and get it to visit them? Is it similar to this?
  Reply With Quote

 
Old 05-08-2007, 07:09 PM   #4 (permalink)
Sub
Banned
 
Sub is offline
Join Date: Sep 2006
Location: England
Age: 15
Posts: 950
iTrader: 0 / 0%
Sub Is gaining popularity
Rep Power: 0
You will need to put this in your declarations to be able to load a text file to a list box.

Code:
Public Sub LoadList(lstList As ListBox, strPath As String)
    Dim objLoader As Object
    If strPath = Empty Then Exit Sub
    Set objLoader = CreateObject("Scripting.FileSystemObject")
    Set objLoader = objLoader.OpenTextFile(strPath, 1, True)
    Do While Not objLoader.AtEndOfStream
        lstList.AddItem StrConv((objLoader.ReadLine), vbProperCase)
    Loop
    objLoader.Close
    Set objLoader = Nothing
End Sub
Forgot how to use it but you should be able to figure it out xD
  Reply With Quote

 
Old 05-08-2007, 09:43 PM   #5 (permalink)
Banned
 
Zachafer is offline
Join Date: Apr 2007
Posts: 96
iTrader: 0 / 0%
Zachafer Is gaining popularity
Rep Power: 0
Use sub's code like:

Private Sub Command1_Click ()
Call LoadList (List1, "/textfile.txt")
End Sub
  Reply With Quote

 
Old 05-08-2007, 10:01 PM   #6 (permalink)
 
ASHTEHCOMMIE's Avatar
 
ASHTEHCOMMIE is online now
Join Date: Dec 2006
Location: Canaduh
Age: 20
Posts: 2,554
iTrader: 37 / 100%
ASHTEHCOMMIE Is Popular
Rep Power: 8
I don't really get it T_T
*confused*
__________________

I'm Gambit_lova@hotmail.com; I only use Msn; I don't play Runescape, if anyone else is trying to be me make sure they can mail you from this account.

  Reply With Quote

 
Old 05-12-2007, 07:13 AM   #7 (permalink)
Banned
 
Zachafer is offline
Join Date: Apr 2007
Posts: 96
iTrader: 0 / 0%
Zachafer Is gaining popularity
Rep Power: 0
Simple.
Open up VB6, add a command button and a list. Leave them named Command1 and List1

Enter this code:
Code:
Function LoadList(lstList As ListBox, strPath As String)
    Dim objLoader As Object
    If strPath = Empty Then Exit Sub
    Set objLoader = CreateObject("Scripting.FileSystemObject")
    Set objLoader = objLoader.OpenTextFile(strPath, 1, True)
    Do While Not objLoader.AtEndOfStream
        lstList.AddItem StrConv((objLoader.ReadLine), vbProperCase)
    Loop
    objLoader.Close
    Set objLoader = Nothing
End Function

Private Sub Command1_Click ()
Call LoadList (List1, "/textfile.txt")
End Sub
Edit: You said:
Quote:
This code will tell the program what link you want it to go to. But you always need the comma after the first link, a space, then the second link.

That is how you program a code to get to a site.
The second part (after the comma) is the referrer. It does not visit two seperate links with that code. Try wording your tutorials better. I am not pleased with your tutorials. They have lazy coding. Include HTTPWrapper maybe too?

Last edited by Zachafer; 05-12-2007 at 07:16 AM.
  Reply With Quote

 
Old 05-12-2007, 11:16 PM   #8 (permalink)
I raep babies.
 
omgcat is offline
Join Date: May 2007
Posts: 61
iTrader: 0 / 0%
omgcat Is gaining popularity
Rep Power: 4
If you have any sence in programming, you should have a http wrapper, stuff, sleep moduels. I know it is the referrer. I typed this up at around 1:00 AM x.x
  Reply With Quote

 
Old 05-14-2007, 09:38 PM   #9 (permalink)
Banned
 
Zachafer is offline
Join Date: Apr 2007
Posts: 96
iTrader: 0 / 0%
Zachafer Is gaining popularity
Rep Power: 0
No excuse.
Why would it matter?
That is SO SIMPLE!

Suck it up.
  Reply With Quote

 
Old 05-17-2007, 09:07 AM   #10 (permalink)
 
Kyo♥Connor's Avatar
 
Kyo♥Connor is online now
Join Date: Dec 2006
Location: Preston
Age: 15
Posts: 2,481
iTrader: 0 / 0%
Kyo♥Connor Is Recognizable
Rep Power: 9
how would you make it go to a list of links. not so you have to upload it but a list of links in the program coding, seperated with enter's and List1.AddItem "LOG" inbetween. i have lots of gaia links i want it to go to like that, how?
__________________



  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.0 RC2

All times are GMT -7. The time now is 07:13 AM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.19165397 seconds (100.00% PHP - 0% MySQL) with 19 queries