How to make Typing Speed Tester in C#
Code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TypingSpeed
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string[] data;
private void Form1_Load(object sender, EventArgs e)
{
textBox2.Text = "When the test first starts up, it will present you with a choice of lesson and time. If you are in a hurry, choose the 1 Minute Timed Typing Test. For a more accurate assessment, choose the 5 Minute Test. Lessons 26-35 are the classic story lessons and can make a better overall assessment by typing natural sentences. All the other lessons are available, so if you want to see what your wpm is on the home row keys, or your speed in the 10-key you can. New lessons 38 through 40 include Spanish, French and German words. Lessons 36 and 37 are commonly misspelled words. Our words per minute calculation is based on two factors. The first is the number of characters typed in a given time. Words per minute is determined by the standard calculation of 5 characters per word. ";
string input = textBox2.Text;
data = input.Split(' ');
button1.Focus();
}
private static int g = 0;
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
textBox1.Text = "";
textBox1.ReadOnly = false;
textBox1.Focus();
textBox3.Text = "";
label1.Text = "No of Right Words: ";
label6.Text = "No of Wrong Words: ";
label3.Text = "No of Untype Words: ";
}
private void timer1_Tick(object sender, EventArgs e)
{
g++;
label8.Text = g.ToString();
if (g > 59)
{
int i = 0;
int k = 0;
string output = textBox1.Text;
string[] str = output.Split(' ');
for (int j = 0; j < str.Length; j++)
{
if (str[j] == data[j])
i++;
else if (str[j] != data[j])
k++;
}
label1.Text += i.ToString();
label6.Text += k.ToString();
textBox3.Text = i.ToString();
label3.Text += (data.Length - str.Length).ToString();
textBox1.ReadOnly = true;
button1.Focus();
timer1.Enabled = false;
g = 0;
}
}
}
}
Typing Speed Tester is an exciting game where you
can test your typing skills.By using this you can find your words per minute
speed and it will provide you filtered result of your correct, incorrect and
untype words .It will provide you 100% accurate result free of any error.You
can practice daily and can improve your speed.Share it with your friends and compare
your results with them.Now Let’s start the journey and see how fast you can
type?
Code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TypingSpeed
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string[] data;
private void Form1_Load(object sender, EventArgs e)
{
textBox2.Text = "When the test first starts up, it will present you with a choice of lesson and time. If you are in a hurry, choose the 1 Minute Timed Typing Test. For a more accurate assessment, choose the 5 Minute Test. Lessons 26-35 are the classic story lessons and can make a better overall assessment by typing natural sentences. All the other lessons are available, so if you want to see what your wpm is on the home row keys, or your speed in the 10-key you can. New lessons 38 through 40 include Spanish, French and German words. Lessons 36 and 37 are commonly misspelled words. Our words per minute calculation is based on two factors. The first is the number of characters typed in a given time. Words per minute is determined by the standard calculation of 5 characters per word. ";
string input = textBox2.Text;
data = input.Split(' ');
button1.Focus();
}
private static int g = 0;
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
textBox1.Text = "";
textBox1.ReadOnly = false;
textBox1.Focus();
textBox3.Text = "";
label1.Text = "No of Right Words: ";
label6.Text = "No of Wrong Words: ";
label3.Text = "No of Untype Words: ";
}
private void timer1_Tick(object sender, EventArgs e)
{
g++;
label8.Text = g.ToString();
if (g > 59)
{
int i = 0;
int k = 0;
string output = textBox1.Text;
string[] str = output.Split(' ');
for (int j = 0; j < str.Length; j++)
{
if (str[j] == data[j])
i++;
else if (str[j] != data[j])
k++;
}
label1.Text += i.ToString();
label6.Text += k.ToString();
textBox3.Text = i.ToString();
label3.Text += (data.Length - str.Length).ToString();
textBox1.ReadOnly = true;
button1.Focus();
timer1.Enabled = false;
g = 0;
}
}
}
}
Screen Shot
can you send source code of typing speed tester?
ReplyDeleteSir can you send me source code of typing tester
ReplyDeletesir can you send me source code please :(
ReplyDeleteits not working.. this code is not working properly. n plz tell which is textbox 1st, 2nd and 3rd
ReplyDeleteHello friend! can you please help me with this by sending a copy or source code of this program... Thanks in Advance. :)
ReplyDelete