Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? 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 MMMMMMHMMMMMM HONEY BEE
03-13-2010 06:52 PM
by samstah
Last post by Fran
Today 08:52 AM
6 Replies, 55 Views
Go to first new post What are you currently...
09-12-2008 03:16 PM
by Ocean
Last post by FlameSpiritZenon
Today 08:27 AM
2,948 Replies, 23,826 Views
Go to first new post I tried to find a sexy...
03-11-2010 08:27 PM
by Fran
Last post by Hale'iwa
Today 08:08 AM
8 Replies, 85 Views
Go to first new post [S] GAIA GOLD LEGIT!!
03-08-2010 06:33 AM
by hehe
Last post by hehe
Today 08:01 AM
5 Replies, 48 Views
Go to first new post Happy Birthday Juanstin!...
Today 01:39 AM
by Zombie
Last post by tealeaf
Today 07:54 AM
8 Replies, 58 Views
Reply
 
LinkBack Thread Tools Display Modes

 [vb6] auto neomailer
Old 07-23-2008, 06:58 PM   #1 (permalink)
Full Member

Male Violent_J is offline
 
Violent_J's Avatar
 
Join Date: Nov 2006
Location: Sacramento, California
Age: 18
Posts: 1,057
GPoints: 5,448
iTrader: 5 / 100%
Violent_J Is a Party CaptainViolent_J Is a Party CaptainViolent_J Is a Party Captain
Rep Power: 14
[vb6] auto neomailer

Code:
Dim HTML As String
Dim StopProgram As Boolean
Dim RDMnum As Integer
Dim i As Long

Private Declare Sub InitCommonControls Lib "comctl32.dll" ()

Private Sub cmdclear_Click()
    lstaccounts.Clear
End Sub




Private Sub cmdclearlog_Click()
    lstlog.Clear
End Sub

Private Sub cmdLoad_Click()
Dim strFile As String
strFile = Functions.SelectFileToLoad(CD)
    If Len(strFile) > 1 Then
        Call Functions.TextFileToList(strFile, lstaccounts)
Else
    MsgBox "Please select a file to load!", vbInformation, "Load List Failure"
    End If
End Sub



Private Sub cmdstop_Click()
    cmdstop.Enabled = False
    cmdstart.Enabled = True
    lblstatus.Caption = "Program Stoppped!"
    lstlog.AddItem Time & ": Program Stopped!"
    StopProgram = True
End Sub

Private Sub Form_Initialize()
    Call InitCommonControls
End Sub

Public Function rand(ByVal Min As Double, _
        ByVal Max As Double) As Double
    Dim r As Double
    If Not bolAfterFirstCall Then
        Randomize
        bolAfterFirstCall = True
    End If
    rand = Int(Rnd * (Max - Min + 1)) + Min
End Function

Private Sub cmdstart_Click()
    StopProgram = False
    cmdstart.Enabled = False
    cmdstop.Enabled = True
    lblstatus.Caption = "Program Started!"
    lstlog.AddItem Time & ": Program Started!"
    Do Until cmdstop.Enabled = False Or lstaccounts.ListCount = 0 Or StopProgram = True
     RDMnum = rand(0, lstaccounts.ListCount - 1)
    account = lstaccounts.List(RDMnum)
    HTML = w.PostWrapper("http://www.neopets.com/process_neomessages.phtml", "recipient=" & account & "&**********=&subject=" & txtsubject.Text & "&message_type=notitle&message_body=" & txtmessage.Text, "http://www.neopets.com/neomessages.phtml?type=send")
    lstaccounts.RemoveItem (RDMnum)
        If InStr(1, HTML, "Inbox") Then
            lstlog.AddItem Time & ": Successfully sent message to " & account, 0
        ElseIf InStr(1, HTML, "Sorry, but it looks like your message is too long.") Then
    StopProgram = True
    lstlog.AddItem Time & ": Message is too long!", 0
    lstlog.AddItem Time & ": Program Stopped!", 0
    lblstatus.Caption = "Program Stopped!"
        ElseIf InStr(1, HTML, "Sorry, but only links to Neopets.com") Then
    StopProgram = True
    lblstatus.Caption = "Idle..."
    cmdstart.Enabled = True
    cmdstop.Enabled = True
        ElseIf InStr(1, HTML, "The person that you are trying to send to does not exist in Neopia") Then
    lstlog.AddItem Time & ": User  " & account & " does not exist", 0
        ElseIf InStr(1, HTML, "Do not send messages containing profanity") Then
    StopProgram = True
    lstlog.AddItem Time & ": Message not allowed by TNT!", 0
    lstlog.AddItem Time & ": Program stopped!", 0
    lblstatus.Caption = "Program stopped!"
        ElseIf InStr(1, HTML, "12 hours") Then
    lblstatus.Caption = "Program Stopped!"
    lstlog.AddItem Time & ": Accound needs to be 12 hours old", 0
    StopProgram = True
    cmdstart.Enabled = False
    cmdstop.Enabled = True
        ElseIf InStr(1, HTML, "Sorry but we sense the use of an autobot on this account and can no long allow you to continue") Then
    lstlog.AddItem Time & ": This account has been neomail banned! Probably sending too fast", 0
    StopProgram = True
    lblstatus.Caption = "Program Stopped!"
    cmdstart.Enabled = False
    cmdstop.Enabled = True
        ElseIf InStr(1, HTML, "Sorry, you have sent too many Neomails and our monitors need to evaluate the situation.  Feel free to try again tomorrow.") Then
    StopProgram = True
    lstlog.AddItem Time & ": This account has been neomail banned!", 0
    lblstatus.Caption = "Program Stopped!"
    cmdstart.Enabled = False
    cmdstop.Enabled = True
        ElseIf InStr(1, HTML, "This user is frozen and cannot read or respond to NeoMails!") Then
    lstlog.AddItem Time & ": " & account & " is frozen!", 0
    Else
    lstlog.AddItem Time & ": Unable to send mail to " & account & ".", 0

        End If
        SleepModule.SecondsToWait (txtwait)
        If StopProgram = True Then i = lstaccounts.ListCount
            Loop
            Beep
            cmdstop.Enabled = False
            cmdstart.Enabled = True
            lblstatus.Caption = "Idle..."
End Sub

Private Sub Form_Unload(Cancel As Integer)
Dim frmTemp As Form
For Each frmTemp In Forms
Unload frmTemp
Set frmTemp = Nothing
Next
End
End Sub
__________________
  Reply With Quote

 
Old 07-29-2008, 04:02 PM   #2 (permalink)
Banned

Whatever is offline
 
Join Date: Sep 2007
Posts: 700
GPoints: 1,279
iTrader: 8 / 100%
Whatever Is Recognizable
Rep Power: 0
Thanks!
  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 08:59 AM.


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.10802102 seconds (100.00% PHP - 0% MySQL) with 21 queries