[RuneScape] Howto Make an AutoTalker [RuneScape]

Discussion in 'Programming General' started by Jimmy, Apr 29, 2009.

Thread Status:
Not open for further replies.
[RuneScape] Howto Make an AutoTalker [RuneScape]
  1. Unread #1 - Apr 29, 2009 at 9:41 PM
  2. Jimmy
    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    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
    [​IMG]

    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.
    [​IMG]

    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."
    [​IMG]

    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;
    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
    Code:
    private void SendText()
    {
    }
    after our button1_Click method is finished. Our code should now look like this
    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;
    add in
    Code:
    Thread thread = new Thread(SendText);
    thread.Start();
    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
    Code:
    String text = textBox1.Text;
    send = true;
    while (send)
    {
        SendKeys.SendWait(text);
        SendKeys.SendWait("{ENTER}");
        System.Threading.Thread.Sleep(1000);
    }
    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
    Code:
    send = false;
    into this new void and you're done!

    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 :)
     
  3. Unread #2 - Apr 30, 2009 at 5:16 AM
  4. deathbal sam
    Joined:
    Sep 25, 2008
    Posts:
    754
    Referrals:
    0
    Sythe Gold:
    0

    deathbal sam Apprentice
    Banned

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    I like it but im getting a few errors i dont think im copying it write
     
  5. Unread #3 - May 1, 2009 at 2:14 PM
  6. Deathstar110
    Joined:
    Dec 13, 2008
    Posts:
    655
    Referrals:
    1
    Sythe Gold:
    0

    Deathstar110 Apprentice
    Banned

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    Thanks made my own autoclicker :)
     
  7. Unread #4 - May 2, 2009 at 6:06 PM
  8. Gorillaz.
    Joined:
    Apr 5, 2009
    Posts:
    278
    Referrals:
    0
    Sythe Gold:
    0

    Gorillaz. Forum Addict
    Banned

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    Doesn't work, just gives CRON errors.
     
  9. Unread #5 - May 14, 2009 at 10:09 AM
  10. Gokussj45
    Joined:
    May 14, 2009
    Posts:
    10
    Referrals:
    0
    Sythe Gold:
    0

    Gokussj45 Newcomer

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    very good tutoliar all working.
     
  11. Unread #6 - Aug 13, 2009 at 3:46 AM
  12. JustChillin
    Joined:
    Aug 10, 2009
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    JustChillin Newcomer

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    Ok. I followed the guide, but when i type my text and hit start it doesnt do anything. What am i supposed to do? xD
     
  13. Unread #7 - Sep 16, 2009 at 11:06 AM
  14. war833
    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0

    war833 Member

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    You would be much better off using a timer, but apart from that, not bad.
     
  15. Unread #8 - Sep 17, 2009 at 2:48 AM
  16. ipivb
    Joined:
    Sep 17, 2009
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0

    ipivb Newcomer

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    you should add a download to the project file cause alot of people are saying there getting errors
     
  17. Unread #9 - Sep 17, 2009 at 10:50 PM
  18. Jimmy
    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    Old thread is old.

    Just looking back, I can see how crappy this is (both the Tut and code)..ex:
    Because fields obviously return values D:
     
  19. Unread #10 - Sep 17, 2009 at 11:48 PM
  20. lilshortxpnoy
    Joined:
    Apr 18, 2007
    Posts:
    632
    Referrals:
    0
    Sythe Gold:
    0

    lilshortxpnoy Apprentice
    Banned

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    olddd, dont auto you can get banned
     
  21. Unread #11 - Sep 24, 2009 at 10:37 PM
  22. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    [RuneScape] Howto Make an AutoTalker [RuneScape]

    Locked. Old.
     
< need help with c++ program | Silent mouse clicks? >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site