Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[TUT] [EASY!] How to Make a BOT Say Something Upon Opening Your Program [EASY!] [TUT]

Ok this is my first tutorial and so far everybody has hated on my threads either way so whatever.

Sorry if this has been posted already!!

Things You Will Need :
Visual Basic 2008/2010
Basic Coding Knowledge

Step 1) Create a New Windows application and name it whatever you want/or edit a .vb project you already have.

Step 2) Drag a Timer onto Form1

Step 3) Double-Click Timer [Image: b203a2241d5258098ea7e78b23f73ee0.png]

and copy this :

Code
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  Dim SAPI
  SAPI = CreateObject("SAPI.spvoice")
  SAPI.Speak("What you want the BOT to say")
  Timer1.Enabled = False

    End Sub

Step 4) Highlight all of the text shown in the picture

[Image: ba813c165e847531cf0d0e89d7eb23a9.png]

Step 5) Paste the code you copied form Step 3 and it should overwrite the text you highlighted from Step 4

Should look like this!

[Image: 1dea6a40c7569a102955cc4813602e16.png]

Step 5) In between the parenthesis type what you want the bot to say
Code
SAPI.Speak("What you want the BOT to say")


Step 6)Now go back to the top where it says
Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

And highlight it

[Image: 30522b29f2efde424ec7180ed12878ce.png]

Step 7) Copy this

Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  If Me.Enabled = True Then
    Timer1.Enabled = True
  End If

    End Sub

And paste it where you highlighted the code in step 6

Step 8) Click the Debug Icon at the top of Visual Basic

[Image: b9803e4f14970e5d63c0a852f6154bd2.png]

And it should say whatever you put in the parenthesis,if it didn't go back and see what you did wrong!


Here is the full code if anyone is to lazy to follow the tutorial!

Spoiler (Click to View)

Thank you for reading my tutorial and please leave your questions down below if your having problems.

Again this is my first tutorial for Hackforums so I hope you'll welcome me to the HF community!

- iBounce™
Posted previously. This isn't a bot either.
(Aug 7, 2011 09:38 PM)Deceptive Wrote:  Posted previously. This isn't a bot either.

He means a bot as in like a robot.

He is calling the voice a Bot, not the program.

Anyways, good job, this will help out beginners!
(Aug 7, 2011 09:38 PM)Deceptive Wrote:  Posted previously. This isn't a bot either.

What am I suppose to call it...Microsoft speech,because that would fit.

(Aug 7, 2011 09:39 PM)Edgar Allan Slow Wrote:  He means a bot as in like a robot.

He is calling the voice a Bot, not the program.

Anyways, good job, this will help out beginners!

Thank you for the feedback!
(Aug 7, 2011 09:38 PM)Deceptive Wrote:  Posted previously. This isn't a bot either.

1. Define bot
bot / bät / Noun
1. The larva of the botfly, which is an internal parasite of animals.
2. (chiefly in science fiction) A robot.

2. Define robot
ro·bot / ˈrōˌbät / Noun
1. A machine capable of carrying out a complex series of actions automatically.

So, yes, it is a bot.

@OP: Rated good because lack of originality and structure (could have had a better tutorial design). Other than that a GREAT tutorial!
[Image: 86251a37e635a21aea7eb7e014b0d820.gif]
(Aug 7, 2011 09:53 PM)Tedd Wrote:  1. Define bot
bot / bät / Noun
1. The larva of the botfly, which is an internal parasite of animals.
2. (chiefly in science fiction) A robot.

2. Define robot
ro·bot / ˈrōˌbät / Noun
1. A machine capable of carrying out a complex series of actions automatically.

So, yes, it is a bot.

@OP: Rated good because lack of originality and structure (could have had a better tutorial design). Other than that a GREAT tutorial!

How in the hell is this a "robot" it's Text to Speech. This isn't complex either.
(Aug 7, 2011 09:55 PM)Deceptive Wrote:  How in the hell is this a "robot" it's Text to Speech. This isn't complex either.

Are you serious? Microsoft Speech takes a string and converts it into a sound. That takes every single consonant, vowel, pronunciation, etc. and compiles it into one wav. How is that not complex?

Edit: As well, it doesn't have to be complex. Complex can be (yet the opposite) as simple as a series of commands.

Complex:
adjective /kämˈpleks/  /kəmˈpleks/  /ˈkämˌpleks/ 

1. Consisting of many different and connected parts
[Image: 86251a37e635a21aea7eb7e014b0d820.gif]
(Aug 7, 2011 09:58 PM)Tedd Wrote:  Are you serious? Microsoft Speech takes a string and converts it into a sound. That takes every single consonant, vowel, pronunciation, etc. and compiles it into one wav. How is that not complex?

Edit: As well, it doesn't have to be complex. Complex can be (yet the opposite) as simple as a series of commands.

Complex:
adjective /kämˈpleks/  /kəmˈpleks/  /ˈkämˌpleks/ 

1. Consisting of many different and connected parts

Sure Microsoft Speech is, but the snippet he just posted isn't.

/Thread
Why would you be using a timer for this?

There is a form load event handler
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
(Aug 7, 2011 10:01 PM)Deceptive Wrote:  Sure Microsoft Speech is, but the snippet he just posted isn't.

/Thread

The snippet he uses plugs into microsoft speech therefor becoming a "complex robot", in the most literal definition.
[Image: 86251a37e635a21aea7eb7e014b0d820.gif]
Why do people always argue on my threads?

But whatever I don't mind.
Nice job explaining, will for sure help out the beginners.
Why is a timer used? Why can't it just be on Form_Load?
Would make much more sense considering it when it starts.

OP: Good job, but explain a little more that every command does, helps but no one really knows what SAPI and dim might mean, for beginners.

Also no one is hating on your thread, they are questioning your methods, thats not hating.
Also people arn't arguing in a wrong view, they are arguing because you called it a bot, which is very stupid i agree but just tune it out, its nothing aginst the thread. /ignoreit
(Aug 7, 2011 10:09 PM)iBounce™ Wrote:  Why do people always argue on my threads?

But whatever I don't mind.

its ok its not just you.its almost always like that on every thread
(Aug 7, 2011 10:11 PM)Cherish Life Wrote:  Why is a timer used? Why can't it just be on Form_Load?
Would make much more sense considering it when it starts.

Now that you mention it...Your right,but whatever I kinda like it this way because you can set the interval so it delays my splash screen a little but.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by kazclubJul 25, 2013 09:04 AM 7 151 Jul 25, 2013 09:04 AM
Last Post: kazclub
[.NET] by PsychotiicAug 2, 2012 01:22 PM 22 869 Aug 2, 2012 01:22 PM
Last Post: ident
[C#] by pimpie1995Apr 25, 2012 01:19 AM 27 759 Apr 25, 2012 01:19 AM
Last Post: Vuln