Site icon Onlinecmag

How to Create a Chatbot or Chatbox in Notepad

How to Create a Chatbot or Chatbox in Notepad

You can easily create a simple ChatBox or a ChatBot using a Notepad in your Windows Computer. The ChatBox below is written in the VBScript language (VBScript stands for Visual Basic, Scripting Edition). This language only runs on Windows. However, the program given below can be easily adapted to other programming environments.

Steps To Make Your Chatbot Or Chatbox In Notepad :

Step 1 : Open notepad :

Click on the Start menu and Navigate to All Programs=>Accessories =>Notepad. You can even open it by typing notepad in Run.

Step 2 : Type The Below Given Code :

fname=inputbox ("hello")
 fname=inputbox ("Was it you who woke me up?")
 fname=inputbox ("What's your name?")
 fname=inputbox ("i like your name and thank you for activating me")
 fname=inputbox ("So wassup?")
 fname=inputbox ("Yups. What's your favorite food?")
 fname=inputbox ("Hmm...I never ate it much ")
 fname=inputbox ("Yay! Aww, gotta go")
 fname=inputbox ("See you soon")

Step 3 : Save You Document :

Go to File Menu and click on Save As option . In Type option select ” all types ” and save the file in “.vbs ” format i.e as ” OnlineCmag.vbs “ .

The Saved Application will be as below :

Step 4 : Execute your File :

Double-click on the the ” OnlineCmag.vbs ” icon to start the application. If everything went right then a pop up window will appear Or you will see an error message that shows which line of your program holds an error. Rectify the error shown. Then double-click again on the file to see whether everything is working as expected or not .

Tips :

Exit mobile version