资源简介
自动答题考试软件,完全源代码开源,可以借鉴,初学者或者小白可以直接使用,C#开发
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Timers;
using mshtml;
using SHDocVw;
namespace bym
{
public partial class Form1 : Form
{
public string[] a = new string[110];
private System.Timers.Timer t = new System.Timers.Timer();
private int hd_num = 0;
private bool lg = false;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender EventArgs e)
{
chus_anser();
webBrowser1.Navigate(“http://club.beingmate.com/love2011/“);
//webBrowser1.Navigate(“http://127.0.0.1:81/1.htm“);
}
private void chus_anser()//初始化答案
{
a[0] = “A“; a[106] = “A“; a[107] = “A“; a[108] = “A“; a[109] = “A“; a[54] = “A“;
a[1] = “A“; a[2] = “D“; a[3] = “C“; a[4] = “C“; a[5] = “A“; a[6] = “B“; a[7] = “A“; a[8] = “B“; a[9] = “B“; a[10] = “A“; a[11] = “A“; a[12] = “B“; a[13] = “A“; a[14] = “A“; a[15] = “A“; a[16] = “B“; a[17] = “A“; a[18] = “A“; a[19] = “A“; a[20] = “D“;
a[21] = “C“; a[22] = “D“; a[23] = “D“; a[24] = “A“; a[25] = “A“; a[26] = “C“; a[27] = “D“; a[28] = “B“; a[29] = “B“; a[30] = “B“; a[31] = “D“; a[32] = “A“; a[33] = “B“; a[34] = “D“; a[35] = “C“; a[36] = “A“; a[37] = “C“; a[38] = “A“; a[39] = “A“; a[40] = “A“;
a[41] = “C“; a[42] = “A“; a[43] = “B“; a[44] = “C“; a[45] = “D“; a[46] = “D“; a[47] = “D“; a[48] = “A“; a[49] = “B“; a[50] = “C“; a[51] = “D“; a[52] = “D“; a[53] = “D“; a[55] = “A“; a[56] = “A“; a[57] = “A“; a[58] = “A“; a[59] = “A“; a[60] = “C“;
a[61] = “C“; a[62] = “C“; a[63] = “C“; a[64] = “C“; a[65] = “C“; a[66] = “A“; a[67] = “A“; a[68] = “A“; a[69] = “A“; a[70] = “A“; a[71] = “A“; a[72] = “A“; a[73] = “B“; a[74] = “C“; a[75] = “D“; a[76] = “B“; a[77] = “B“; a[78] = “A“; a[79] = “B“; a[80] = “C“;
a[81] = “D“; a[82] = “B“; a[83] = “B“; a[84] = “B“; a[85] = “A“; a[86] = “C“; a[87] = “C“; a[88] = “B“; a[89] = “A“; a[90] = “C“; a[91] = “C“; a[92] = “C“; a[93] = “A“; a[94] = “C“; a[95] = “A“; a[96] = “A“; a[97] = “A“; a[98] = “A“; a[99] = “A“;
a[100] = “B“; a[101] = “D“; a[102] = “B“; a[103] = “A“; a[104] = “B“; a[105] = “C“;
}
private void button1_Click(object sender EventArgs e)
{
string name = “username“;
string pwd = “pwd“;
HtmlElement textboxUserId = this.webBrowser1.Document.GetElementById(“username“);
HtmlElement textboxPassword = this.webBrowser1.Document.GetElementById(“password“);
textboxUserId.SetAttribute(“value“ name); //填写帐号
textboxPassword.SetAttribute(“value“ pwd); //填写密码
string imgsrc = “images/beingmate_03“;//开始登陆按钮
autoclick(imgsrc);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 28672 2011-05-09 16:27 q\bym\bin\Debug\bym.exe
文件 30208 2011-05-09 16:27 q\bym\bin\Debug\bym.pdb
文件 5632 2005-12-08 14:51 q\bym\bin\Debug\bym.vshost.exe
文件 131072 2011-04-11 15:51 q\bym\bin\Debug\Interop.SHDocVw.dll
文件 8007680 2008-05-11 08:00 q\bym\bin\Debug\Microsoft.mshtml.dll
文件 3490 2011-04-13 14:11 q\bym\bym.csproj
文件 13912 2011-05-09 16:27 q\bym\Form1.cs
文件 6607 2011-04-13 14:37 q\bym\Form1.Designer.cs
文件 5814 2011-04-13 14:37 q\bym\Form1.resx
文件 1288 2011-05-09 16:27 q\bym\obj\bym.csproj.FileListAbsolute.txt
文件 842 2011-05-09 16:27 q\bym\obj\Debug\bym.csproj.GenerateResource.Cache
文件 28672 2011-05-09 16:27 q\bym\obj\Debug\bym.exe
文件 180 2011-05-09 16:27 q\bym\obj\Debug\bym.Form1.resources
文件 30208 2011-05-09 16:27 q\bym\obj\Debug\bym.pdb
文件 180 2011-05-09 16:27 q\bym\obj\Debug\bym.Properties.Resources.resources
文件 462 2011-04-11 09:01 q\bym\Program.cs
文件 1162 2011-04-11 09:01 q\bym\Properties\AssemblyInfo.cs
文件 2862 2011-04-11 09:01 q\bym\Properties\Resources.Designer.cs
文件 5612 2011-04-11 09:01 q\bym\Properties\Resources.resx
文件 1088 2011-04-11 09:01 q\bym\Properties\Settings.Designer.cs
文件 249 2011-04-11 09:01 q\bym\Properties\Settings.settings
文件 898 2011-04-11 09:01 q\bym.sln
..A..H. 23552 2011-05-09 16:27 q\bym.suo
文件 159744 2011-05-10 07:57 q\说明.doc
目录 0 2011-05-10 09:31 q\bym\obj\Debug\TempPE
目录 0 2011-05-10 09:31 q\bym\bin\Debug
目录 0 2011-05-10 09:31 q\bym\obj\Debug
目录 0 2011-05-10 09:31 q\bym\bin
目录 0 2011-05-10 09:31 q\bym\obj
目录 0 2011-05-10 09:31 q\bym\Properties
............此处省略5个文件信息
- 上一篇:C#影院售票系统
- 下一篇:C#全套教程.txt
评论
共有 条评论