How to make your Computer Talk with VBScript
If you want to make your computer talk with vbscript please follow below steps :
Steps :-
Message=InputBox("Please Enter text","Speak")
Set Speak=CreateObject("sapi.spvoice")
Speak.Speak Message
3. Now Click on File Menu, Save As, select All Types in Save as Type option, and save the file as "*.vbs".
Steps :-
- Open Notepad.
- Paste the code given below.
Message=InputBox("Please Enter text","Speak")
Set Speak=CreateObject("sapi.spvoice")
Speak.Speak Message
3. Now Click on File Menu, Save As, select All Types in Save as Type option, and save the file as "*.vbs".
4. Double click on the saved file, a window will open like the one in
the image. Enter some text in enter text column and click OK.
nice...
ReplyDelete