How to Make a Chat Room (With Notepad)

230,882

60

136

About: Hey, I an average person, I have many interest including electronics, music, design and architecture. I also enjoy skateboarding in my free time when I am not working. I would really like to get into 3d prin...

This Instructable shows you how to make a Chat Room with the free windows application called Notepad. This program was not copied and pasted, it was made from scratch, you can copy and paste it (If you do not want to learn the code). What did I make? I made a chat room with notepad, I just used my computer. How did I make it? l read a few tutorials, and over time I built up knowledge on how to create multiple different operable batch files. I made this all by my self (with a little help from "Prof. Pickle"), the "plans" are always changing I keep adding more pieces to it. that is what I love about programming, you can just keep changing it and evolving it. Where did you make this? I made this at my house. (I did not want to have to buy any new computers, I did not have to at home). What did you learn? ​I learned more codes and commands, I am developing and advancing in my hobby. I am just proud of the fact that i made this all by myself, and that it is so big of a code (i know it is not that big, I just want to think it is). if I was to do it "again," I would add effect to make the background and text more attractive. For the chat room to work you must know the IP address of the persons computer that you want to send the message to. This chat room is password protected, and if a hacker tries to hack it it jokes around with them.  Enough of this, lets get on to the code. 

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: THE TOTAL CODE

Here is All of the code in one big list. Copy just the code (everything between the hash tags #). After copying everything here paste it in to a blank notepad file. save it as a bat file (Messenger.bat). See the last step for additional help saving.

#####################################################################################################
@echo off
Title Superman's Chat Room
color 0e
:top
echo ===Superman's Chat Room===
ECHO 1 - access chat room via password
ECHO 2 - access for Hackers
ECHO 3 - get into the chat room without password
ECHO 4 - Exit
SET /P OPT=Please make a selection, and press enter:
if %OPT%==1 GOTO OPTION1
if %OPT%==2 GOTO OPTION2
if %OPT%==3 GOTO OPTION3
if %opt%==4 GOTO OPTION4
:OPTION1
GOTO PASS
ECHO Redirect to Password input
:OPTION2
ECHO Redirect for Hackers
ping -n 2 127.0.0.1>nul
color c
echo ==============================================================================
echo Come on I know you are better than that, come on your a hacker crack the code!
echo ==============================================================================
ping -n 2 127.0.0.1>nul
echo ACCESS DENIED
pause
exit
:OPTION3
echo Free Access
color c
ping -n 2 127.0.0.1>nul
echo ================================================================
ECHO Do you think I would actually let you get in without a password?
echo ================================================================
ping -n 2 127.0.0.1>nul
echo ACCESS DENIED
pause
Exit
:OPTION4
echo Are you sure you want exit?
echo Y/N
echo type "Y" or "N"
set input=
set /p input=
if %input%== y goto y
if %input%== n goto n
:y
echo yes
pause
exit
:n
echo no
echo redirect to menu
ping -n 2 127.0.0.1>nul
CLS
goto top
:PASS
ECHO Enter the correct CORRECT password
set /p pass=password:
if %pass%==1234 goto Access Granted
Cls
COLOR C
echo.
echo ACCESS DENIED
ping -n 2 127.0.0.1>nul
EXIT
cls
goto pass
:Access Granted
color a
echo Access Granted, Welcome.
pause
color a
echo Instructions: Type the Ip address of the person you want to talk to enter the chat room,
echo type it after "MESSENGER" after you enter the chat room.
pause
echo For "experienced" users hold the down the down arrow until you reach the Chat Room.
echo if you are not farmiliar with "Superman's Chat Room" than press any key once for the instructions.
Pause
echo Step 1) To find your IP addres open up command prompt in the Start Menu for windows users.
Pause
echo Step 2) Type "ipconfig" as soon as it opens.
Pause
echo Step 3) Record the IP address, and type it after the word "messenger"
Pause
echo Step 4) Begin chat room use
Cls
color c
pause
echo this code was created by Superman
pause
Cls
echo !!! Warning! this code was not created nor intended for illegal use!!!
echo This is your last chance to close this program or you will be entering the chat room!
pause
Cls
echo Entering Chat Room
pause 
:A
Cls
echo MESSENGER
set /p n=User:
set /p m=Message:
net send %n% %m% 2>nul||echo Your message did not go through && pause
Pause
Goto A
#####################################################################################################
Yes, I know it is a fair sized amount of code.
 

Step 2: THE CODE BROKEN IN TO PARTS

In the following steps I will break down the code into its "blocks"
the code is made of 5 different pieces witch i like to call "Blocks." The pieces are: the title and menu, the menus options, the password input, the instructions, the warnings, and of course the messenger itself. We will explain the title and menu first. 

Step 3: THE TITLE AND MENU

The picture shows what each thing is for/does. The title names it (obviously) the menu help prevent hackers and nosy people out of your chat room. Only one of the options will get you to the log in 

Step 4: PASSWORD INPUT

The picture shows what each thing is for/does. the password protects it from people that do not know how to edit code or people who have bad vision,(it is very hard to spot a few letters in a lot of lines of data) The password may be changed, from the list it is 1234, after you find this backspace it (but not the code) and type in your password, it can be as long as you would like. 

Step 5: THE INSTRUCTIONS

The picture shows what each thing is for/does. The instructions are petty easy to follow but you can edit them if you want to. the instructions tell you how to find your IP and how to input it.

Step 6: THE WARNINGS

The picture shows what each thing is for/does. The warning I put on here are pointless, unless you want it to look cool, you can delete these very easily if you do not like pushing two more buttons.

Step 7: THE MESSENGER BLOCK

This is the messenger of the program, it sends and receives the messages, without this there is no point to this program. Indeed you could dissect the  code of any part  and use it for other purposes.

Step 8: SAVING

This is how you save your batch file. click "file," "save as," next, type in the file name of your choice then immediately after the name (no spaces) type ".bat" then click save. An example "Myprogram.bat" (see photos) 

Step 9:

You are done! I am not responsible at all for what you do with this!​  Now you can say that you made your own program!

Make-to-Learn Youth Contest

Participated in the
Make-to-Learn Youth Contest

UP! Contest

Participated in the
UP! Contest

Be the First to Share

    Recommendations

    • Assistive Tech Contest

      Assistive Tech Contest
    • Reuse Contest

      Reuse Contest
    • Made with Math Contest

      Made with Math Contest

    136 Discussions

    0
    None
    Gouanaco.

    4 years ago on Step 1

    This wont work on pretty much most school networks. Net Send is a old XP command that doesn't work on Windows 7 and above. Also most school networks block remote connections.

    There is another way. I have done it myself. Me and my friends chat during class its funny as XD. But netsend doesn't work. If anyone wants to know how i did it, flick me a reply here. Its mainly todo with school shared drives and txt files :)

    ~ Gouanaco

    7 replies
    0
    None
    thechampalfGouanaco.

    Reply 4 months ago

    hi, ik this is ages after but im new and just messing around with my new pc, so pls could you email me at @thechampalf@gmail.com and include the code if u still have it. thankyou!

    0
    None
    Gouanaco.ShaneS6

    Reply 4 years ago on Step 1

    Ok ShaneS6

    Ill tell you how :)

    I coulnd't type all of my comment on here. But here is a link to my shared drive.

    https://drive.google.com/folderview?id=0B-AxBgQHLsQVfkI5MDZEeFVfc3ZXZUlPTGRjdXdkOXlGVGdJWVF4anZ5c2d1SHpvckNiQ2s&usp=sharing

    The readme tells you everything you need to know plus the v5 folder will have everything you need :D

    Feel free to ask any questions.

    0
    None
    ShaneS6Gouanaco.

    Reply 4 years ago

    Well crap, we each have individual network drives, no shared.

    0
    None
    Gouanaco.ShaneS6

    Reply 4 years ago on Introduction

    Eh, badluck. You can't do much with individual network drives unless!

    You find out the network name and password for the drives. Your gonna have to google how to do that though, its different for each windows version.

    Windows 7 i think is you have to connect to a shared folder that is also hidden on the network. But you need to know the password, and what the actual folder is called :/

    Mine is something like firstname.lastname.MH78HGD8G2(random numbers and chars)@domainname

    so its annoying to find lol.

    But goodluck :)

    0
    None
    shotgunshaneGouanaco.

    Reply 4 years ago on Introduction

    haha yes I did this when I was in middle school but our network administrator found it and I got a detention for creating it but everyone that used it just got to walk away. It made me mad

    0
    None
    Gouanaco.shotgunshane

    Reply 4 years ago on Introduction

    haha nice xD

    So far ive only handed it out to a few people. We've been using it for about a couple of months now.

    I don't think the admin minds, i know him personally and hes into that sorta stuff. He's probably monitering my progress on it XD

    0
    None
    liliflowa

    Question 6 months ago

    HELP!?!?!

    0
    None
    liliflowa

    6 months ago

    What coding do I use 2 make a chat group on notepad?

    0
    None
    SAOarmy

    10 months ago

    Somebody help me, I don't know how to use!!!

    0
    None
    ɅܠΞܛ

    2 years ago

    Is there a way to download this?

    0
    None
    LoLeRi 2

    2 years ago

    OMG COMPLICATED :D

    0
    None
    sans_

    2 years ago

    people you cant actualy send messages this was made for fun!

    1
    None
    001DeLeon

    3 years ago

    Now this is funny... Your dumb password is 1234, it says it in the code.... I am a coder... Witch means you can't trick me... And , this code don't even work...

    1 reply
    0
    None
    sans_001DeLeon

    Reply 2 years ago

    first of all, I don't think it's supposed to work and I dont think it was trying to trick you can't make a real chat room that works with notepad :/

    0
    None
    jackieo4

    4 years ago

    i guess im a hacker because i looked at his/her code and saw the password.