Home Computer Make your Notepad Type Automatically –  Ghost Keyboard Typing  

Make your Notepad Type Automatically –  Ghost Keyboard Typing  

0

Have you ever seen your friend making his notepad type automatically? So, you want to do the same? Wondering how to make your notepad type automatically? This is a simple notepad related trick, but could be fun to try on your friends. In this post, I will be showing you how to make Notepad type automatically and impress your friends.

Notepad in Windows is a little handy text editing utility that allows you to type text without much of formatting or options. You simply open the Notepad app and start typing. It also happens to be the most lightweight utility in Windows OS. Nevertheless, this is a great app for the users who don’t want much of formatting and functions but simply want to take notes. Apart from taking notes, the Notepad can be used to create batch files. You can read more about how to create batch files in Windows here. Additionally, the Notepad can also be used for some fun task.

One of such task is called as Ghost Keyboard Typing. If you have seen it before or heard of it, then you will be learning it in this post, and if you are hearing about this for the first time, let me show you how it works.

The Ghost Keyboard Typing trick is all about making your Notepad to write few words without using the keyboard. So, you write few lines of code and save it using Notepad. When you run the saved file, some predefined words will appear on your screen which will look like someone is typing using the keyboard.  This is a VBScrip trick, so yeah, that is how we are going to do it. 

Trick to Make Notepad Write Automatically

As I said earlier, to accomplish this task, you need to write few lines of code in Notepad and then save it. The codes are given in the article below.

Open Notepad. Press Windows Key + R and type Notepad. Hit enter to open it. Alternatively, you can also open Notepad clicking on the Notepad icon.

Copy the below-given command and paste it into the Notepad document.

Code:


set wshshell = wscript.CreateObject("wScript.Shell")
wshshell.run "Notepad"
wscript.sleep 400
wshshell.sendkeys "A"
wscript.sleep 100
wshshell.sendkeys "h"
wscript.sleep 120
wshshell.sendkeys " "
wscript.sleep 200
wshshell.sendkeys "H"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 140
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 50
wshshell.sendkeys "Y"
wscript.sleep 120
wshshell.sendkeys "o"
wscript.sleep 170
wshshell.sendkeys "u"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 50
wshshell.sendkeys "D"
wscript.sleep 120
wshshell.sendkeys "I"
wscript.sleep 160
wshshell.sendkeys "D"
wscript.sleep 200
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "I"
wscript.sleep 100
wshshell.sendkeys "T"
wscript.sleep 100

 

Once you have copied the above code into the Notepad document, it is time to save it.

Press Ctrl + S, or click on File and select Save as.

Enter Filename as Ghost typing or anything you want with a file extension as .vbs. So, your file name will look like Ghostyping.vbs.

Save Notepad trick as vbs

Save as type should be All files. So click on Save as Type and select the type as All files.

Click on Save to save the Notepad document.

For the convenience copy the Notepad document to your desktop. Double-click on it to run it.

If everything went right, you would see “Ah, haa, you did it” message being typed automatically in Notepad.

Troubleshooting Tips: 

Windows Script error Notepad

When you try to run the Notepad document by double-clicking on it, you may get a Windows Script Host error. The error will be Invalid character, and the error code is 800A0408. This error is easy to fix.

All you have to do is, right-click on the Notepad document and select edit. Now remove the ( “” ) double quote and enter it all again manually.

An easy way to do it is to copy the codes from the Notepad to a Word document. Press Ctrl + F to open Find and Replace dialogue box. Enter in the Find field and enter  in the Replace field and click on Replace All button.

Find and Replace

Copy the edited code back to Notepad and save it with .vbs extension. Try to run the Notepad document and see if you were able to execute the document.

LEAVE A REPLY