Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Tutorials
[C#]Basic Auto Typer
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Keno" data-source="post: 256038" data-attributes="member: 13995"><p>Hi cutie pies this section looks dead and I'm bored so here's how to make a basic 'auto typer'.</p><p><img src="http://img17.imageshack.us/img17/5884/zivd.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>Before we continue I'd suggest reading these:</p><p></p><p>Start a new project in Visual Studio using WFA and add a text box, timer, combo box and a button then name them whatever you want and add suitable text!!</p><p>Once you've done that view the form's code and let's add a few lines of code to the constructor to initialise some values.</p><p></p><p>[CODE] public Form1() {</p><p> ...</p><p> button1.Text = "Start";</p><p> comboBox1.Text = "500";</p><p> comboBox1.Items.AddRange(new object[] { "1000", "1500", "2000", "2500", "3000", "3500", }); //Adds these values to the cbox</p><p> ... }</p><p>[/CODE]</p><p>Go back to the design in find your timer double click it and add this code!!!!</p><p>[CODE] private void timer1_Tick(object sender, EventArgs e) {</p><p> SendKeys.Send(textBox1.Text); // Please read the SendKeys class reference I provided above if you have not :@</p><p> SendKeys.Send("{ENTER}");</p><p> }[/CODE]</p><p>Go back to the design, double click your send button and let's add some code woo!!!</p><p>[CODE] private void button1_Click(object sender, EventArgs e)</p><p> {</p><p> try</p><p> {</p><p> if (button1.Text == "Start")</p><p> {</p><p> timer1.Interval = Int32.Parse(comboBox1.Text);</p><p> button1.Text = "Stop";</p><p> timer1.Start();</p><p> }</p><p> else</p><p> {</p><p> button1.Text = "Start";</p><p> timer1.Stop();</p><p> }</p><p> }</p><p> catch (Exception ex) {</p><p> MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);</p><p> }</p><p> }[/CODE]</p><p>Woah!!1!one!! you've done it now you have an auto typer ^^, now go mess around with it haha. If I made an error srry wrote it in notepad <img src="/styles/default/xenforo/smilies/emojione/frown.png" class="smilie" loading="lazy" alt=":(" title="Frown :(" data-shortname=":(" /> but it looks ok.</p><p>Any tutorial requests? Advanced/basic Java & C# only pls <img src="/styles/default/xenforo/smilies/emojione/frown.png" class="smilie" loading="lazy" alt=":(" title="Frown :(" data-shortname=":(" /> if I'm bored I'll write one up ;*</p></blockquote><p></p>
[QUOTE="Keno, post: 256038, member: 13995"] Hi cutie pies this section looks dead and I'm bored so here's how to make a basic 'auto typer'. [IMG]http://img17.imageshack.us/img17/5884/zivd.png[/IMG] Before we continue I'd suggest reading these: Start a new project in Visual Studio using WFA and add a text box, timer, combo box and a button then name them whatever you want and add suitable text!! Once you've done that view the form's code and let's add a few lines of code to the constructor to initialise some values. [CODE] public Form1() { ... button1.Text = "Start"; comboBox1.Text = "500"; comboBox1.Items.AddRange(new object[] { "1000", "1500", "2000", "2500", "3000", "3500", }); //Adds these values to the cbox ... } [/CODE] Go back to the design in find your timer double click it and add this code!!!! [CODE] private void timer1_Tick(object sender, EventArgs e) { SendKeys.Send(textBox1.Text); // Please read the SendKeys class reference I provided above if you have not :@ SendKeys.Send("{ENTER}"); }[/CODE] Go back to the design, double click your send button and let's add some code woo!!! [CODE] private void button1_Click(object sender, EventArgs e) { try { if (button1.Text == "Start") { timer1.Interval = Int32.Parse(comboBox1.Text); button1.Text = "Stop"; timer1.Start(); } else { button1.Text = "Start"; timer1.Stop(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }[/CODE] Woah!!1!one!! you've done it now you have an auto typer ^^, now go mess around with it haha. If I made an error srry wrote it in notepad :( but it looks ok. Any tutorial requests? Advanced/basic Java & C# only pls :( if I'm bored I'll write one up ;* [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Tutorials
[C#]Basic Auto Typer
Top