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
» Recent Threads
Go to first new post Lil Wayne
10-21-2008 09:33 PM
Last post by smokey
Today 09:02 PM
41 Replies, 331 Views
Go to first new post The best browser
11-13-2008 06:35 PM
Last post by azn fingers
Today 08:54 PM
59 Replies, 353 Views
Go to first new post Selling Tons of Legit...
07-17-2008 06:47 PM
by Crim
Last post by ebilbish
Today 08:51 PM
432 Replies, 4,744 Views
Go to first new post What's your weather?
11-08-2008 04:43 PM
by reirei
Last post by azn fingers
Today 08:51 PM
58 Replies, 355 Views
Go to first new post Instruments, anyone?
10-23-2008 11:50 AM
Last post by azn fingers
Today 08:49 PM
131 Replies, 728 Views
Reply
 
LinkBack Thread Tools Display Modes

 [vb6] auto neomailer
Old 07-23-2008, 07:58 PM   #1 (permalink)
Site Programmer

Male Violent_J is offline
 
Violent_J's Avatar
 
Join Date: Nov 2006
Location: Sacramento, California
Age: 16
Posts: 933
GPoints: 469
iTrader: 5 / 100%
Violent_J Is Amongst RoyaltyViolent_J Is Amongst Royalty
Rep Power: 9
[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
__________________



Current rep: 110
  Reply With Quote

 
Old 07-29-2008, 05:02 PM   #2 (permalink)
Underground

Jeffgordon24365 is online now
 
Jeffgordon24365's Avatar
 
Join Date: Sep 2007
Posts: 238
GPoints: 950
iTrader: 4 / 100%
Jeffgordon24365 Is Recognizable
Rep Power: 4
Thanks!
__________________





Pics taken by: Me Rendered and styled by: Me

Most recent work:
  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 09:03 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.09666610 seconds (100.00% PHP - 0% MySQL) with 19 queries