This is my first Tut on how to make an AutoTalker for RuneScape using Microsoft Visual C# Express Edition.
Step 1: If you don't already have Microsoft Visual C# Express Edition installed, you can obtain a free copy here
Step 2: Once you have that installed, open it up. Create a new Project by clicking "File -> New Project" on the menu bar
Step 3: A new window should open called "New Project" Select "Windows Form Application" as the template and put "AutoTalker" as the project name. Hit OK
Step 4: A new tab should open and you should see the gui of your project. Right click on the gui and hit "properties." Once that is open, Scroll down on the properties panel and change the value of text to "AutoTalker." Hit enter.
Step 5: The name of your form should now look different. First, of you don't already see the Toolbox, hit "view -> Toolbox" on the menu. Drag a textbox over onto the frame, as well as a label. Change the text of the label the same way we changed the text of the frame. Once you have done this, drag two buttons over. Change the text of one of them to "Start" and the other one to "Stop."
Step 6: Double click on the "Start" button. You should now see the code of your project. You should see a new void you just created called "button1_Click." This void is started when the user clicks on the start button. We are going to add
so that if the user has not put in any text to AutoTalk, it will not continue.
Step 7:Now we are going to create a new void by typing
after our button1_Click method is finished. Our code should now look like this
Step 8: Scroll to the top of our code. Under "using System.Windows.Forms;" add in "using System.Threading;" so that we can create and use threads. After
add in
This creates a new Thread of the SendText method and starts this thread. Scroll up to the top of our code and find "public Form1()". Add "private volatile bool send;" before this.
Step 9: Almost done! Add in
This reads the text in textBox1, and while send returns true, it sends the keys in textBox1, sends the enter key, and waits 1000 millis (1 second) before doing this all over again.
Step 10: Go back to our form editior and double click the stop button. Simply paste the code
into this new void and you're done!
Our final code should look like this.
Change around the spot of buttons in our form editor if you wish. To create a .exe out of this, save the project. Then click "Build -> Build Solution" Open your documents folder, open "Visual Studios 2008 -> Projects -> AutoTalker -> AutoTalker -> obj -> Release and there's your nice AutoTalker.exe
Rate/Hate/Comment
Step 1: If you don't already have Microsoft Visual C# Express Edition installed, you can obtain a free copy here
Step 2: Once you have that installed, open it up. Create a new Project by clicking "File -> New Project" on the menu bar
Step 3: A new window should open called "New Project" Select "Windows Form Application" as the template and put "AutoTalker" as the project name. Hit OK
Step 4: A new tab should open and you should see the gui of your project. Right click on the gui and hit "properties." Once that is open, Scroll down on the properties panel and change the value of text to "AutoTalker." Hit enter.
Step 5: The name of your form should now look different. First, of you don't already see the Toolbox, hit "view -> Toolbox" on the menu. Drag a textbox over onto the frame, as well as a label. Change the text of the label the same way we changed the text of the frame. Once you have done this, drag two buttons over. Change the text of one of them to "Start" and the other one to "Stop."
Step 6: Double click on the "Start" button. You should now see the code of your project. You should see a new void you just created called "button1_Click." This void is started when the user clicks on the start button. We are going to add
Code:
if (textBox1.Equals(""))
return;
Step 7:Now we are going to create a new void by typing
Code:
private void SendText()
{
}
Code:
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Equals(""))
return;
}
private void SendText()
{
}
Step 8: Scroll to the top of our code. Under "using System.Windows.Forms;" add in "using System.Threading;" so that we can create and use threads. After
Code:
if (textBox1.Equals(""))
return;
Code:
Thread thread = new Thread(SendText);
thread.Start();
Step 9: Almost done! Add in
Code:
String text = textBox1.Text;
send = true;
while (send)
{
SendKeys.SendWait(text);
SendKeys.SendWait("{ENTER}");
System.Threading.Thread.Sleep(1000);
}
Step 10: Go back to our form editior and double click the stop button. Simply paste the code
Code:
send = false;
Our final code should look like this.
Code:
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.Threading;
namespace AutoTalker
{
public partial class Form1 : Form
{
private volatile bool send;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Equals(""))
return;
Thread thread = new Thread(SendText);
thread.Start();
}
private void SendText()
{
String text = textBox1.Text;
send = true;
while (send)
{
SendKeys.SendWait(text);
SendKeys.SendWait("{ENTER}");
System.Threading.Thread.Sleep(1000);
}
}
private void button2_Click(object sender, EventArgs e)
{
send = false;
}
}
}
Change around the spot of buttons in our form editor if you wish. To create a .exe out of this, save the project. Then click "Build -> Build Solution" Open your documents folder, open "Visual Studios 2008 -> Projects -> AutoTalker -> AutoTalker -> obj -> Release and there's your nice AutoTalker.exe
Rate/Hate/Comment











