why is my vb.net skills so fail?

Discussion in 'World of SPAM' started by Fexxel, Jun 20, 2009.

  1. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    Code (Text):
    1. Imports System.Text.RegularExpressions
    2. Imports System.Net
    3. Imports System.IO
    4. Imports System.Text
    5. Imports System.IO.Compression
    6. Imports System.Runtime.Serialization.Formatters.Binary
    7.  
    8. Public Class form1
    9.     Private Wrapper As New TCPWrapper
    10.     Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogin.Click
    11.         cmdLogin.Enabled = False
    12.         txtUser.Enabled = False
    13.         txtPass.Enabled = False
    14.         If txtUser.Text = "" Or txtPass.Text = "" Then
    15.             MsgBox("Username and/or password cannot be blank")
    16.             cmdLogin.Enabled = True
    17.             txtUser.Enabled = True
    18.             txtPass.Enabled = True
    19.         Else
    20.             lstLog.Items.Add("Logging in...")
    21.             lstLog.SelectedIndex = lstLog.Items.Count - 1
    22.             Application.DoEvents()
    23.             Dim Response = Wrapper.NeoLogin(txtUser.Text, txtPass.Text, False)
    24.             Application.DoEvents()
    25.             If Response = "Logged In" Then
    26.                 lstLog.Items.Add("Logged in as " + txtUser.Text)
    27.                 cmdLogout.Enabled = True
    28.                 lstLog.SelectedIndex = lstLog.Items.Count - 1
    29.             Else
    30.                 lstLog.Items.Add(Response)
    31.                 MsgBox("There was a problem logging in. See log for details")
    32.                 cmdLogin.Enabled = True
    33.                 txtUser.Enabled = True
    34.                 txtPass.Enabled = True
    35.                 lstLog.SelectedIndex = lstLog.Items.Count - 1
    36.             End If
    37.         End If
    38.     End Sub
    39.  
    40.     Private Sub cmdLogout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogout.Click
    41.         Wrapper.ClearCookies()
    42.         cmdLogin.Enabled = True
    43.         cmdLogout.Enabled = False
    44.         lstLog.Items.Add("Logged Out")
    45.         txtUser.Text = ""
    46.         txtPass.Text = ""
    47.         txtUser.Enabled = True
    48.         txtPass.Enabled = True
    49.         lstLog.SelectedIndex = lstLog.Items.Count - 1
    50.     End Sub
    51.  
    52.     Private Sub cmdStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStart.Click
    53.         progress.Maximum = users.Items.Count()
    54.         Dim w As New TCPWrapper
    55.         Timer1.Enabled = True
    56.         Do While Timer1.Enabled = True
    57.             w.Request("POST", "http://www.neopets.com/process_neomessages.phtml" & "recipient=" & users.SelectedIndex & "&neofriends=&subject=" & txtsubject.Text & "&message_type=notitle&message_body=" & txtmessage.Text, "http://www.neopets.com/neomessages.phtml?type=send")
    58.             lstLog.Items.Add(users.SelectedIndex & "has been spammed!")
    59.             users.SelectedIndex = users.SelectedIndex - 1
    60.             progress.Value = progress.Value + 1
    61.             If progress.Maximum = progress.Value Then
    62.                 Timer1.Enabled = False
    63.                 lstLog.Items.Add("DONE!" & TimeOfDay)
    64.             End If
    65.             w.pause(1)
    66.         Loop
    67.     End Sub
    68.  
    69.     Private Sub cmdstop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdstop.Click
    70.         Timer1.Enabled = False
    71.     End Sub
    72.  
    73.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    74.         If Timer1.Enabled = False Then
    75.             cmdstop.Enabled = False
    76.         ElseIf Timer1.Enabled = True Then
    77.             cmdstop.Enabled = True
    78.         End If
    79.     End Sub
    80.  
    81.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    82.         users.Items.Clear()
    83.     End Sub
    84.  
    85.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    86.         Dim objStream As StreamReader, buffer As String = String.Empty, arrFile() As String
    87.         Dim OD As New OpenFileDialog
    88.         OD.FileName = ""
    89.         OD.Multiselect = False
    90.         OD.Title = "Open List File"
    91.         OD.AddExtension = True
    92.         OD.Filter = "Text files (*.txt)|*.txt"
    93.         OD.DefaultExt = "txt"
    94.         OD.ShowDialog()
    95.         If OD.FileName = "" Or OD.CheckFileExists() = False Then Exit Sub
    96.         objStream = New StreamReader(OD.FileName, True)
    97.         objStream = File.OpenText(OD.FileName)
    98.         Do While objStream.EndOfStream = False
    99.             buffer = objStream.ReadToEnd.ToString
    100.         Loop
    101.         arrFile = Regex.Split(buffer, vbCrLf)
    102.         For i As Integer = 0 To UBound(arrFile)
    103.             users.Items.Add(arrFile(i))
    104.         Next
    105.     End Sub
    106.  
    107.     Private Sub fmrNeoLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    108.  
    109.     End Sub
    110.  
    111.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    112.         users.Items.Clear()
    113.         progress.Value = 0
    114.         txtmessage.Text = "Message Body"
    115.         txtsubject.Text = "Subject"
    116.         Wrapper.ClearCookies()
    117.         cmdLogin.Enabled = True
    118.         cmdLogout.Enabled = False
    119.         lstLog.Items.Add("Logged Out")
    120.         txtUser.Text = ""
    121.         txtPass.Text = ""
    122.         txtUser.Enabled = True
    123.         txtPass.Enabled = True
    124.         lstLog.SelectedIndex = lstLog.Items.Count - 1
    125.         Timer1.Enabled = False
    126.         lstLog.Items.Clear()
    127.         lstLog.Items.Add("Reset program")
    128.     End Sub
    129. End Class
    130.  
    131. Public Class TCPWrapper
    132.     Inherits System.Windows.Forms.UserControl
    133. #Region " Windows Form Designer generated code "
    134.     Public Sub New()
    135.         MyBase.New()
    136.         'This call is required by the Windows Form Designer.
    137.         InitializeComponent()
    138.         'Add any initialization after the InitializeComponent() call
    139.     End Sub
    140.     'UserControl overrides dispose to clean up the component list.
    141.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
    142.         If disposing Then
    143.             If Not (components Is Nothing) Then
    144.                 components.Dispose()
    145.             End If
    146.         End If
    147.         MyBase.Dispose(disposing)
    148.     End Sub
    149.     'Required by the Windows Form Designer
    150.     Private components As System.ComponentModel.IContainer
    151.     'NOTE: The following procedure is required by the Windows Form Designer
    152.     'It can be modified using the Windows Form Designer.
    153.     'Do not modify it using the code editor.
    154.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    155.         components = New System.ComponentModel.Container
    156.     End Sub
    157. #End Region
    158.     Private colCookies As New Collection
    159.     Dim strCookies As String
    160.     Public LastPage As String
    161.     Public Function Request(ByVal Method As String, ByVal URL As String, ByVal Referer As String) As String
    162.         Dim Host As String = Nothing
    163.         Dim strFile As String = Nothing
    164.         Dim strPost As String = Nothing
    165.         Dim pos As Integer = 0
    166.         If Referer Is Nothing Then
    167.             Referer = LastPage
    168.         End If
    169.         If URL.Contains("http://") Then
    170.             Host = URL.Substring(7)
    171.         Else
    172.             Host = URL
    173.         End If
    174.         If Host.Contains("/") Then
    175.             pos = Host.IndexOf("/", 0)
    176.             strFile = Host.Substring(pos)
    177.             Host = Host.Substring(0, pos)
    178.         Else
    179.             strFile = "/"
    180.         End If
    181.         If Method = "POST" Then
    182.             pos = strFile.IndexOf("?")
    183.             If Not (pos = -1) Then
    184.                 strPost = strFile.Substring(pos + 1)
    185.                 strFile = strFile.Substring(0, pos)
    186.             Else
    187.                 strPost = Nothing
    188.             End If
    189.         End If
    190.         If Method = "POST2" Then
    191.             pos = strFile.IndexOf("?")
    192.             If Not (pos = -1) Then
    193.                 strPost = strFile.Substring(pos + 1)
    194.                 strFile = strFile.Substring(0, pos)
    195.             Else
    196.                 strPost = ""
    197.             End If
    198.         End If
    199.         LastPage = URL
    200.         Dim ReqHeaders As String = Nothing
    201.         If Method = "GET" OrElse Method = "PIC" Then
    202.             ReqHeaders = "GET" + " " + strFile + " HTTP/1.1" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Host: " + Host + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Accept-Language: en-us,en;q=0.5" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Accept-Encoding: gzip, deflate" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Keep-Alive: 300" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Connection: keep-alive" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Referer: " + Referer + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Cookie: " + strCookies + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & ""
    203.         Else
    204.             ReqHeaders = "POST " + strFile + " HTTP/1.1" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Host: " + Host + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Accept-Language: en-us,en;q=0.5" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Accept-Encoding: gzip, deflate" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Keep-Alive: 300" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Connection: keep-alive" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Referer: " + Referer + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Cookie: " + strCookies + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Content-Type: application/x-www-form-urlencoded" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Content-Length: " + strPost.Length.ToString + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "Connection: close" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + "" & Microsoft.VisualBasic.Chr(13) & "" & Microsoft.VisualBasic.Chr(10) & "" + strPost
    205.         End If
    206.         If Method = "PIC" Then
    207.             ReqHeaders.Replace("Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", "Accept: image/png,*/*;q=0.5")
    208.         End If
    209.  
    210.         Dim tcp As New System.Net.Sockets.TcpClient
    211.         Dim netstream As System.Net.Sockets.NetworkStream
    212.         Dim TN(1) As Long
    213.         If Referer = "" Then Referer = LastPage
    214.         If InStr(1, URL, "http://") <> 0 Then Host = Mid$(URL, 8)
    215.         If InStr(1, Host, "/") <> 0 Then Host = Mid$(Host, 1, InStr(1, Host, "/") - 1)
    216.         If InStr(1, Host, "?") <> 0 Then Host = Mid$(Host, 1, InStr(1, Host, "?") - 1)
    217.         LastPage = URL
    218.         Try
    219.             tcp.Connect(Host, 80)
    220.         Catch ex As Exception
    221.             Return ex.Message
    222.         End Try
    223.  
    224.         Dim sendbytes As Byte()
    225.         sendbytes = System.Text.Encoding.ASCII.GetBytes(ReqHeaders)
    226.         netstream = tcp.GetStream()
    227.         netstream.Write(sendbytes, 0, sendbytes.Length)
    228.         Dim sr As StreamReader = New StreamReader(netstream, Encoding.Default)
    229.         Dim strHTML As String = sr.ReadToEnd
    230.         Dim strParts As String() = Regex.Split(strHTML, Environment.NewLine + Environment.NewLine)
    231.         strCookies = ParseCookies(strParts(0))
    232.         If strParts(0).Contains("Content-Encoding") Then
    233.             strParts(1) = DecompressGzip(strParts(1))
    234.         End If
    235.  
    236.         Return strParts(0) + Environment.NewLine + Environment.NewLine + strParts(1)
    237.     End Function
    238.     Public Function DecompressGzip(ByVal compressed As String) As String
    239.         Dim memStream As MemoryStream = New MemoryStream(System.Text.Encoding.Default.GetBytes(compressed))
    240.         Dim decompressStream As GZipStream = New GZipStream(memStream, CompressionMode.Decompress)
    241.         Dim endBytes(4) As Byte
    242.         Dim position As Integer = CType(memStream.Length, Integer) - 4
    243.         memStream.Position = position
    244.         memStream.Read(endBytes, 0, 4)
    245.         memStream.Position = 0
    246.         Dim buffer(BitConverter.ToInt32(endBytes, 0) + 100) As Byte
    247.         Dim offset As Integer = 0
    248.         Dim total As Integer = 0
    249.         While True
    250.             Dim bytesRead As Integer = decompressStream.Read(buffer, offset, 100)
    251.             If bytesRead = 0 Then
    252.                 Exit While
    253.             End If
    254.             offset += bytesRead
    255.             total += bytesRead
    256.         End While
    257.         Return Encoding.ASCII.GetString(buffer)
    258.     End Function
    259.     Public Function ParseCookies(ByVal Headers As String) As String
    260.         ParseCookies = ""
    261.         Dim reg As Regex
    262.         Dim matches As MatchCollection
    263.         Dim match As Match
    264.         reg = New Regex("set-cookie:\s*([^=]+)=([^;]+);", RegexOptions.IgnoreCase)
    265.         If reg.IsMatch(Headers) Then
    266.             matches = reg.Matches(Headers)
    267.             For Each match In matches
    268.                 Try
    269.                     colCookies.Add(match.Groups(1).ToString & "=" & match.Groups(2).ToString, match.Groups(1).ToString)
    270.                 Catch ex As Exception
    271.                     colCookies.Remove(match.Groups(1).ToString)
    272.                     colCookies.Add(match.Groups(1).ToString & "=" & match.Groups(2).ToString, match.Groups(1).ToString)
    273.                 End Try
    274.             Next
    275.         End If
    276.         Dim i As Long
    277.         For i = 1 To colCookies.Count Step 1
    278.             ParseCookies = ParseCookies & colCookies.Item(i).ToString & ";"
    279.         Next
    280.     End Function
    281.     Public Function StripHeaders(ByVal strSource As String) As String
    282.         Dim strParts() As String = Regex.Split(strSource, Environment.NewLine + Environment.NewLine)
    283.         Return strParts(1)
    284.     End Function
    285.     Public Function NeoLogin(ByVal user As String, ByVal pass As String, ByRef loggedIn As Boolean) As String
    286.         Dim strHTML As String = Nothing
    287.         Request("GET", "http://www.neopets.com/loginpage.phtml", "http://www.google.com")
    288.         Pause(1)
    289.         Request("POST", "http://www.neopets.com/hi.phtml?destination=%2Findex.phtml&username=" + user, "http://www.neopets.com/loginpage.phtml")
    290.         Pause(1)
    291.         strHTML = Request("POST", "http://www.neopets.com/login.phtml?username=" + user + "&password=" + pass + "&destination=%2Findex.phtml", "http://www.neopets.com/hi.phtml")
    292.         If strHTML.Contains("Set-Cookie: neologin=") Then
    293.             loggedIn = True
    294.             Return "Logged In"
    295.         Else
    296.             If strHTML.Contains("too many times") Then
    297.                 loggedIn = False
    298.                 Return "To Many Login Attempts"
    299.             Else
    300.                 If strHTML.Contains("badpassword") Then
    301.                     loggedIn = False
    302.                     Return "Wrong Username/Password"
    303.                 Else
    304.                     If strHTML.Contains("frozen") Then
    305.                         loggedIn = False
    306.                         Return "Account Frozen"
    307.                     Else
    308.                         If strHTML.Contains("just a technical problem") Then
    309.                             loggedIn = False
    310.                             Return "Neopets is down for maintenance"
    311.                         Else
    312.                             loggedIn = False
    313.                             Return "Unknow Error"
    314.                         End If
    315.                     End If
    316.                 End If
    317.             End If
    318.         End If
    319.     End Function
    320.     Public Sub Pause(ByVal seconds As Double)
    321.         Dim num As Double = seconds * 1000
    322.         Dim t1 As DateTime = DateTime.Now
    323.         Dim t2 As DateTime = DateTime.Now
    324.         Dim tmDiff As TimeSpan = t2 - t1
    325.         While Convert.ToDouble(tmDiff.TotalMilliseconds.ToString) < num
    326.             t2 = DateTime.Now
    327.             tmDiff = t2 - t1
    328.             Application.DoEvents()
    329.         End While
    330.     End Sub
    331.     Public Function GrabPic(ByVal strURL As String) As System.Drawing.Image
    332.         Dim memStream As New MemoryStream(System.Text.Encoding.Default.GetBytes(StripHeaders(Request("GET", strURL, LastPage))))
    333.         GrabPic = Image.FromStream(memStream)
    334.         Return GrabPic
    335.     End Function
    336.     Public Sub ClearCookies()
    337.         colCookies.Clear()
    338.         strCookies = Nothing
    339.     End Sub
    340.     Public Function GetBetween(ByVal Source As String, ByVal Start As String, ByVal Finish As String) As String
    341.         Dim Result = ""
    342.         Dim A = InStr(1, Source, Start) + Len(Start)
    343.         If A = 0 Then
    344.             Result = ""
    345.             Return Result
    346.         Else
    347.             Dim B = InStr(A, Source, Finish)
    348.             If B = 0 Then
    349.                 Result = ""
    350.                 Return Result
    351.             Else
    352.                 Result = Mid(Source, A, B - A)
    353.                 Return Result
    354.             End If
    355.         End If
    356.     End Function
    357.     Public Function GetRefCk(ByVal Source As String) As String
    358.         Dim StringPosition = InStr(Source, "_ref_ck")
    359.         Source = Source.Remove(0, StringPosition)
    360.         StringPosition = InStr(Source, "value")
    361.         Source = Source.Remove(0, StringPosition + 6)
    362.         StringPosition = InStr(Source, ">")
    363.         Source = Source.Remove(StringPosition - 2, Source.Length - (StringPosition - 2))
    364.         Return Source
    365.     End Function
    366. End Class
    Figure out whats wrong and I will seriously love you to death XD
    I went through the program and I can't find anything wrong. But when I push the "Start" button (cmdstart) the program freezes...
    :( :( :( :(
     
  2. Cacklenub

    Cacklenub Level IV

    Joined:
    May 10, 2008
    Messages:
    1,345
    Likes Received:
    58
    Perhaps there is a strong correlation between vb.net and your grammar?
     
    Rhett likes this.
  3. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    There is no mutual relation between my grammar and my VB.net skills because VB.net has an error console for spelling mistakes.
     
  4. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    Code (Text):
    1.             w.Request("POST", "http://www.neopets.com/process_neomessages.phtml" & "recipient=" & users.SelectedIndex & "&neofriends=&subject=" & txtsubject.Text & "&message_type=notitle&message_body=" & txtmessage.Text, "http://www.neopets.com/neomessages.phtml?type=send")
    ^ Here's the fail
    You have to divide the URL from the postdata by putting a questionmark '?' in-between them.
    Code (Text):
    1.             w.Request("POST", "http://www.neopets.com/process_neomessages.phtml?recipient=" & users.SelectedIndex & "&neofriends=&subject=" & txtsubject.Text & "&message_type=notitle&message_body=" & txtmessage.Text, "http://www.neopets.com/neomessages.phtml?type=send")
     
    Commy likes this.
  5. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    Good eyes !!! :yup:
     
  6. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    eww wtf I'm nearsighted D:
     
  7. WildSnorlax

    WildSnorlax Level IV

    Joined:
    Sep 21, 2008
    Messages:
    3,510
    Likes Received:
    95
    Location:
    Alberta, Canada
    Do you need glasses?? Mooie's services prescribes excellent glasses starting at $19999999.
     
  8. Zer0

    Zer0 Level IV

    Joined:
    Mar 2, 2008
    Messages:
    3,037
    Likes Received:
    180
    Location:
    Home sweet home
    Mooie's glasses:
    [​IMG]
     
  9. WildSnorlax

    WildSnorlax Level IV

    Joined:
    Sep 21, 2008
    Messages:
    3,510
    Likes Received:
    95
    Location:
    Alberta, Canada
    New ones are like this now :eek:
    Zer0 knows nothing!!

    [​IMG]
     
  10. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    O-M-F-G
    RICKY!!!!!!!
    <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3 <3<3 <3 <3 <3 <3 <3 <3 <3
    THAT WASN'T EVEN COPY+PASTED!! I CLICKED THEM OUT 1 BY ONE!!!
    I LOVE YOU!!!!!
    <3
    Ricky:
    You wearing glasses:
    [​IMG]
    Thats brad pitt by the way XD.

    Anyways...
    Tharoux/Ricky:
    Code (Text):
    1. users.SelectedIndex = users.SelectedIndex - 1
    I put that after the sending the message post.
    However, it is making the program freeze.
    I am trying to make it so it doesn't spam the same user over and over again, but rather a new user from the users listbox.
    How do I properly set users.selectedindex to the next user?
     
  11. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    a +1 would be a good start.

    let's say you have 10 items (index from 0 to 9)

    If you do -1, you're in trouble.
     
  12. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    ...OH!! LOL
    I thought it was - for down, not - for up...
    XD My bad.
    THANK YOU THAROUX! I'ma go test my neomail spammer now.
     
  13. SoC

    SoC Moderator
    Staff Member

    Joined:
    Jan 24, 2007
    Messages:
    4,551
    Likes Received:
    105
    Location:
    Maaaaaaanchester!
    {If coder: =#fexxel
    [[Result= : Fail}

    END
     
  14. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    SoCode ftw.
     
  15. SoC

    SoC Moderator
    Staff Member

    Joined:
    Jan 24, 2007
    Messages:
    4,551
    Likes Received:
    105
    Location:
    Maaaaaaanchester!
    :lol:
    That was the extent of my programming knowledge, use lots of brackets/ifs and END at the end xD
     
  16. Heya_old

    Heya_old Level IV

    Joined:
    Mar 31, 2008
    Messages:
    928
    Likes Received:
    46
    SoCode ftw.[/quote]

    import java.net.MalformedFexxelException;

    If (coder.equals("Fexxel")) {
    System.out.println("Program Failure");
    }

    i created a Malformed Fexxel Exception just for you fexxel :)