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 Fair trade? (maple and...
Today 03:12 PM
by Lanbo
Last post by drdd10
Today 03:17 PM
1 Replies, 2 Views
Go to first new post Selling Legit Gaia items...
Today 03:17 PM
by Icee
Last post by Icee
Today 03:17 PM
0 Replies, 1 Views
Go to first new post Transfering Money to...
08-10-2008 06:03 PM
by Saint
Last post by Saint
Today 03:13 PM
7 Replies, 8 Views
Go to first new post Google Chrome
Today 03:10 PM
by Saint
Last post by Connor
Today 03:11 PM
1 Replies, 2 Views
Go to first new post Photoshop Creative...
09-01-2008 08:47 AM
by Connor
Last post by Connor
Today 03:10 PM
2 Replies, 3 Views
Reply
 
LinkBack Thread Tools Display Modes

 [VB6 Tutorial] Downloading to a file
Old 02-11-2007, 06:34 AM   #1 (permalink)
Nitech Nitech is offline Gender Male
Underground
 
Nitech's Avatar
 
Nitech is offline
Join Date: Jan 2007
Location: Russia
Age: 14
Posts: 226
iTrader: 0 / 0%
Nitech Is gaining popularity
Rep Power: 5
[VB6 Tutorial] Downloading to a file

Hello, I am going to help you to make a download to a file thing which is usually needed for autobuyer, and other noobnan3h.

First, youll have to call URLDownloadToFile.

Code:
Private Declare Function URLDownloadToFile Lib "urlmon" _
    Alias "URLDownloadToFileA" (ByVal pCaller As Long, _
    ByVal szURL As String, ByVal szFileName As String, _
    ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
    Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
Add that before anything else.

Now add this to the place before the haggling.

Code:
            URLDownloadToFile 0, "http://www.neopets.com/login.phtml?username=" & txtUser.Text & "&password=" & txtPass.Text & "&location=/petcentral.phtml", "C:/AppleBuyer/Files/Login.phtml", 0, 0
            URLDownloadToFile 0, piclink, "C:/AppleBuyer/Files/Image.gif", 0, 0
The first download file gets the login. Because now neo added a thing that logs you out of your acc if you login anywhere else or from somewhere else.
The seconds URLDownloadToFile gets the image with the url of piclink, which is:
Code:
piclink = "http://www.neopets.com/captcha_show.phtml?_x_pwned=" & GetStringBetween(DPage, "/captcha_show.phtml?_x_pwned=", ChrW$(34) & " style=")
Then add:
Code:
strCoord = OIR.OIR
Then when posting the link, strCoord would be &x=#&y=#.

I hope to have helped.
__________________

Quote:
Vlad says:
LEL 20 DUELRZ PLIZ ;O
Ryan says:
HAHA NO LOL
Vlad says:
You like men.
^Lesson learnt.
  Reply With Quote

 Re: [VB6 Tutorial] Downloading to a file
Old 02-14-2007, 08:12 PM   #2 (permalink)
rcadble rcadble is offline Gender Male
Underground
 
rcadble is offline
Join Date: Sep 2006
Posts: 227
iTrader: 0 / 0%
rcadble Is Recognizable
Rep Power: 6
Re: [VB6 Tutorial] Downloading to a file

You know you can just do "piclink = "http://www.neopets.com/captcha_show.phtml"
  Reply With Quote

 Re: [VB6 Tutorial] Downloading to a file
Old 02-25-2007, 05:09 AM   #3 (permalink)
Nitech Nitech is offline Gender Male
Underground
 
Nitech's Avatar
 
Nitech is offline
Join Date: Jan 2007
Location: Russia
Age: 14
Posts: 226
iTrader: 0 / 0%
Nitech Is gaining popularity
Rep Power: 5
Re: [VB6 Tutorial] Downloading to a file

Yes, I recently found that out -.-
__________________

Quote:
Vlad says:
LEL 20 DUELRZ PLIZ ;O
Ryan says:
HAHA NO LOL
Vlad says:
You like men.
^Lesson learnt.
  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 03:29 PM.


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

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