domenica 20 aprile 2014

Creare Uno Spammer Di Testi [C#]

Oggi ho deciso di portarvi (dopo molto tempo) una guida su come creare uno spammer di testi con visual basic.
Per Fare ciò nel vostro Windows Form Application Avrete Bisogno di:
1 Combobox
1 TextBox
2 Bottoni
1 Timer
La grafica fatela come volete qui vi posto un'immagine di quella (molto semplice) che ho creato io











Ora Passiamo Ai Codici:
[CODE]

Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Timer1.Start()
if ComboBox1.Text = "" then
MsgBox("Choose A value from the ComboBox",MsgBoxStyle.Critical)
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        SendKeys.Send(TextBox1.Text)
        SendKeys.Send("{enter}")
        Timer1.Interval = ComboBox1.Text
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Timer1.Stop()
    End Sub
End Class
[CODE/]