简单新浪博客等刷访问量C#源码
来源:互联网 发布:c语言算术运算 编辑:程序博客网 时间:2024/05/08 18:12
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Runtime.InteropServices;
namespace 网站访问量
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string x = textBox1.Text;
if (x == "") {
MessageBox.Show("照照,网址不能为空!");
return;
}
xx();
timer1.Enabled = true;
button1.Enabled = false;
button2.Enabled = true;
}
public void xx() {
string x = textBox1.Text;
Regex reg = new Regex(@",");
string[] r = reg.Split(x);
Process ps = new Process();
ps.StartInfo.FileName = "iexplore.exe";
for (int i = 0; i < r.Length; i++)
{
//ps.StartInfo.Arguments = "" + r[i] + "";
//ps.Start();
System.Diagnostics.Process.Start(""+r[i]+"");
}
}
private void timer1_Tick(object sender, EventArgs e)
{
xx();
}
private void button2_Click(object sender, EventArgs e)
{
timer1.Enabled = false;
button2.Enabled = false;
button1.Enabled = true;
}
private void button3_Click(object sender, EventArgs e)
{
if (textBox2.Text == "") {
MessageBox.Show("设定时间不能为空");
return;
}
int x=Convert.ToInt32( textBox2.Text)*1000;
timer1.Interval = x;
}
private void Form1_Load(object sender, EventArgs e)
{
button2.Enabled = false;
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox3.Text == "")
{
MessageBox.Show("设定时间不能为空");
return;
}
timer2.Interval = Convert.ToInt32(textBox3.Text) * 60000;
}
private void timer2_Tick(object sender, EventArgs e)
{
Process[] myProcess;
myProcess = Process.GetProcessesByName("iexplore");
foreach (Process instance in myProcess)
{
instance.WaitForExit(3);
instance.CloseMainWindow();
}
}
}
}
- 简单新浪博客等刷访问量C#源码
- 新浪&CSDN博客访问量比较
- 新浪&CSDN博客访问量比较
- python刷博客访问量
- 简单CSDN爬虫,实现博客访问量记录
- 如何刷博客的访问量
- 如何刷博客的访问量
- 用linux shell写的一个简单的刷博客访问量的脚本
- python爬虫之csdn刷博客访问量
- Node.js批量刷CSDN博客访问量
- PHP爬虫之刷博客访问量
- jsp统计页面访问量和刷访问量的简单使用
- 新浪微博客户端源码 android
- 简单的Python爬虫刷访问量程序
- 如何提高博客访问量
- 如何提高博客访问量
- 博客访问量记录
- 博客突破1000访问量
- JAVA 集合三
- html5 离线存储
- 饭工和碗工
- Magento 后台订单显示图片
- 转别人的Javascript连接数据库
- 简单新浪博客等刷访问量C#源码
- 设计模式C++实现(2)——策略模式
- 我对自己学习的思考
- JAVA 集合总结
- 执行jar文件
- ANR的分析解决
- setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION)不能立刻生效的原因
- --SQL SERVER 2005+ 静态行转列示例
- HDU 3973 AC's String