111,098
社区成员




//动作函数
void AutoPostDate1()
{
int money = 10000; //下注金额
//quint = QutoInt(comboBox1.Text); //下注区域
//下注动作
int i = 1;
//try
//{
i = Http.AutoPost.post(prizeID, quint.ToString(), tep.ToString(), money.ToString(), server, aspcookies1);
if (i == 0)
{
SetTextBox("本期投注成功.请登录网站查看结果");
return;
}
else
{
SetTextBox("本期投注时间已过,请等待下次投注");
return;
}
}
以上这个函数是向某个网站提交数据...
private void button2_Click(object sender, EventArgs e)
{
if (comboBox1.Text == "")
{
MessageBox.Show("请选择投注区域!!", "系统提示");
return;
}
if (comboBox2.Text == "")
{
MessageBox.Show("请选择投注方向!!", "系统提示");
return;
}
//创建两个线程 去提交数据节
Thread.threadpost = new Thread(AutoPostDate);
Thread.threadpost1 = new Thread(AutoPostDate1);
//Thread.threadpost = new Thread(AutoPostDate2); //以下两个线程无法与上面两个线程同时执行
//Thread.threadpost1 = new Thread(AutoPostDate3);
threadpost.Start();
threadpost1.Start();
}