Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (1 vote)
216 views

Simple Notepad Programming 4

This document provides instructions for creating a simple Notepad program that asks the user for their name using inputbox and messageboxes, then greets them by name and has the computer speak a welcome message using text-to-speech. The program prompts the user to type their name, stores it in a variable, concatenates it into a greeting messagebox, and uses the SAPI.SpVoice object to audibly speak a welcome string to the user.

Uploaded by

Himura Kenshin
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
216 views

Simple Notepad Programming 4

This document provides instructions for creating a simple Notepad program that asks the user for their name using inputbox and messageboxes, then greets them by name and has the computer speak a welcome message using text-to-speech. The program prompts the user to type their name, stores it in a variable, concatenates it into a greeting messagebox, and uses the SAPI.SpVoice object to audibly speak a welcome string to the user.

Uploaded by

Himura Kenshin
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Simple Notepad Programming #4

Crete a new file in Notepad then type:



dim name
x=msgbox("Type your name below.",,"My First Program")
name=inputbox("What do I call you?")
msgbox("Hello," + name)
StrText=("Hello user. Welcome to your computer.")
set ObjVoice = CreateObject("SAPI.SpVoice")
ObjVoice.speak StrText

Click File, then Save, type Ask.vbs, then save or enter.

You might also like