This document provides instructions for creating a simple Notepad program that uses message boxes and input boxes to greet the user by name after they enter it, and then has the computer speak the text "Hello user. Welcome to your computer." The program is saved as a .vbs file called talk.vbs.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
97 views
Simple Notepad Programming 01
This document provides instructions for creating a simple Notepad program that uses message boxes and input boxes to greet the user by name after they enter it, and then has the computer speak the text "Hello user. Welcome to your computer." The program is saved as a .vbs file called talk.vbs.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Simple Notepad Programming
Open 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