Adblock breaks this site

FAST C# Auto Talker

Discussion in 'Programming General' started by Molotov, Nov 25, 2009.

  1. Molotov

    Molotov Active Member
    Banned

    Joined:
    Aug 26, 2009
    Posts:
    149
    Referrals:
    0
    Sythe Gold:
    0
    FAST C# Auto Talker

    Hey guys, I know there is like 53043435 threads about this. But this one is far the easiest one, BUT the fastest one you'll come across :). ( me being cocky ), anyhow, I'm gonna write a tutorial on how this is done, so if your wanting to learn c# then, check in each week on this forum, and I'll more c# tutorials for you guys :).

    --

    Ok, first thing you need to do is just start a new windows form application, and name it whatever you want.

    Then you'll need to add 3 text boxes, 1 timer, 2 command buttons.

    Name the 2 command buttons " Start, and Stop "

    --

    Double click on the timer, and you should see the page where you input the code. Now insert this :

    Code:
    SendKeys.Send(textBox1.Text);
    SendKeys.Send("{ENTER}");
    SendKeys.Send(textBox2.Text);
    SendKeys.Send("{ENTER}");
    SendKeys.Send(textBox3.Text);
    SendKeys.Send("{ENTER}");
    Double click on the Start command button and add this :

    Code:
    timer1.Enabled = true;
    Double click on the Stop command button and add this :

    Code:
    timer1.Enabled = false;
    Now test the app, and I suggest only putting 1 box of text in. If you put 3, it will be extremely fast lol.

    --

    Congrats, you just made your first program in C# :)
     
  2. Supah Fly

    Supah Fly Active Member
    Banned

    Joined:
    Aug 22, 2007
    Posts:
    202
    Referrals:
    1
    Sythe Gold:
    0
    FAST C# Auto Talker

    might as well just put a while loop in there

    timers :(
     
  3. war833

    war833 Member

    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0
    FAST C# Auto Talker

    While loops try to do it too fast and wind up doing it slower.
     
  4. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    FAST C# Auto Talker

    LEARN TO USE THREADS. JESUS.

    Timers make me want to /life.
     
< VB Tutorial set: 1. Introduction | Community Sources & Tutorials List >


 
 
Adblock breaks this site