Oggi ho deciso di portarvi (dopo molto tempo) una guida su come creare un AutoRefresher per siti. Questo programma scritto in C# vi consentirà di ricaricare automaticamente un sito in un intervallo di tempo stabilito.
Per Fare ciò nel vostro Windows Form Application Avrete Bisogno di:
2 Label (opzionali)
2 TextBox
2 Bottoni
1 Timer
1 WebBrowser (io ho usato quello predefinito per comodità).
La grafica fatela come volete qui vi posto un'immagine di quella (molto semplice) che ho creato io
(Premete sull'immagine per ingrandirla)
Ora Passiamo Ai Codici:
[CODE]
private void button1_Click(object sender, EventArgs e)
{
try
{
int time = int.Parse(textBox2.Text.ToString());
timer1.Interval = (time * 1000);
timer1.Start();
}
catch (Exception E)
{
MessageBox.Show("You're pleased to use only numbers as interval.");
}
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Stop();
}
private void timer1_Tick(object sender, EventArgs e)
{
try
{
webBrowser1.Navigate(textBox1.Text.ToString());
}
catch (Exception E)
{
MessageBox.Show("Add an URL to refresh!");
}
}
private void button2_Click(object sender, EventArgs e)
{
timer1.Stop();
}
}
}
[CODE/]
Ne io ne il blog ci assumiamo la responsabilità di eventuali danni causati da voi ad altri o a danni al vostro pc.Tutto il Materiale qui postato è a scopo puramente informativo
giovedì 9 ottobre 2014
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/]
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/]
Iscriviti a:
Post (Atom)