SilabGarza - RS Private Server  
Home Forum Play Register Store Market Highscores Mark Forums Read
Go Back   SilabGarza - RS Private Server > SilGar Media > Computers > Programming
Reload this Page [TUT] Travis Annoyer [C#]

[TUT] Travis Annoyer [C#]
  (#1 (permalink))
nater360's Avatar
Posts: n/a
Time Online: N/A
Default [TUT] Travis Annoyer [C#] - 06-05-2014, 04:46 PM

Finally decided what to do on my first tutorial.

What this will be: An Autotyper that sings songs

Difficulty: 2/10
Experience gain: 4/10
Program: Visual Studio
Language: C#

Step 1. Your GUI

For this you'll only need 4 things: A richtextbox, two buttons, and a timer.

Step 2. Configure the timer and the ints

You'll want the timer to go off every 7 second since that's silabgarza's legal speed for autotypers. You'll need two ints one for the amount of lines in the song, and another for which line is currently being sung.

Disabling the stop button will prevent you from getting problems in the future.

Step 3. Start Button

You'll need to disable your start button and enable the stop button.

You'll also need to start your timer.

(The picture forgot this step)

You'll need to reset the current line int back to -1 so if you play another song it doesn't break do so by adding this:

"_Line = -1;"

Or whatever your int was called = -1;

Step 4: Stop Button

Should be self explanatory after doing the first few steps

Final Step: The Timer

FIRST: The line next to the ">" is my cursor please don't freak out about not knowing that the symbol is.

You'll need to add 1 to the current line int so "++" means to add 1 this will tell the program which line of the song to say

Do an If/Else

In the if do it so if the current line int is greater than the number of lines there are in the song it presses the stop button.

For the else, this is where the typing will commence, "{enter}" in the sendkeys command presses enter for you.


Sorry this was a terrible tutorial I have no video software to use right now so I couldn't do it that was which would be a lot more informative. Post if you have a question will explain it or at least try to explain it much more in depth there.



The Following 2 users gave some cookies:
Run N Fast (06-06-2014), Tom (06-05-2014)
  (#2 (permalink))
Brittany is Offline
Brittany's Avatar
Posts: 24,709
Cookies Given: 611
Cookies Received: 3,789
Time Online: 203 d 20 h 29 m
Default 06-05-2014, 04:48 PM

You're a horrible person.

Sometimes we just need a friend.
Someone to hold us when you can't stand.
Sometimes even to pretend like you matter for that split second that everything seems to be crashing down.
And sometimes it's just easier to say goodbye.

The Following 2 users gave Brittany some cookies:
Lizzy (06-05-2014), Mutanttarn (06-05-2014)
adsense code2.3
Closed Thread


[TUT] Travis Annoyer [C#]


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -7. The time now is 12:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.