Ghost keyboard Typing – Notepad Tricks

Hey guys , Today I am going to share with you a Short but Cool Notepad Trick. People Use notepad to type and save some important or regular information, But very less people know that there is much more that we can do with Notepad.

What if i say that we can make Notepad to type automatically what ever we wish to…. Unreal ? Yes it is possible and you will be doing it by yourself in just a few moments.You can show it to your friends and surprise them. Basically it is a prank that you can do with anyone just for fun.

Another Interesting Post : Fixing Iphone Stuck on Apple’s logo

This Process is Also known as ” Ghost Keyboard Typing ” Because you dont even touch your keyboard and words starts displaying in your notepad automatically, When you show this to your friend or anyone else, they will be excited to learn this from you as well.

Notepad Trick


Notepad trick to Type Automatically


Step 1: Right click on your desktop and select create new text document or simply Open Notepad.

Step 2: Exactly Copy the code given below and Paste it in notepad document that you have just created.


set wshshell = wscript.CreateObject(“wScript.Shell”)
wshshell.run “Notepad”
wscript.sleep 400
wshshell.sendkeys “S”
wscript.sleep 100
wshshell.sendkeys “M”
wscript.sleep 120
wshshell.sendkeys “A”
wscript.sleep 200
wshshell.sendkeys “R”
wscript.sleep 100
wshshell.sendkeys “T”
wscript.sleep 140
wshshell.sendkeys “T”
wscript.sleep 100
wshshell.sendkeys “R”
wscript.sleep 50
wshshell.sendkeys “I”
wscript.sleep 120
wshshell.sendkeys “C”
wscript.sleep 170
wshshell.sendkeys “K”
wscript.sleep 100
wshshell.sendkeys “S”
wscript.sleep 50
wshshell.sendkeys “.”
wscript.sleep 120
wshshell.sendkeys “N”
wscript.sleep 160
wshshell.sendkeys “E”
wscript.sleep 200
wshshell.sendkeys “T”
wscript.sleep 100


Step 3: Save the above code in Notepad file As ” smarttricks.vbs ” (Without Quotes ) but make sure  While saving this file select Save as type  “All files” and extension must be .vbs

Step 4: Now double click on The saved File, You will see “SMARTTRICKS.NET ” will be typed  Automatically, This is one of the Most awesome Notepad Trick that You learned today. Moreover  you can edit the Words In the above given Code with any desired words you want Notepad to type for you. e.g. : MY FRIEND READING THIS IS FOOL..vb


IMPORTANT !!!

While Double Clicking on the saved file if you see an error box like ” line 1 ” and “Char 37” Then dont worry, Right click on smarttricks.vbs and click on edit,

Now delete all Double quotations ie : ”  and Type them all manually from your keyboard, save it and now you will have no errors.


Enjoyed this Notepad trick ? Share with your friends on Social media.!!

73 Comments
  1. Reply Dhruv Tiwari February 16, 2016 at 11:46 am

    Thanks for these cool notepad tricks. I bookmarked this page for future updates.

  2. Reply sam January 28, 2016 at 10:57 am

    it really work dude hahahahaha

  3. Reply Kazi Mamun October 11, 2015 at 7:52 pm

    its did not work.

  4. Reply ricky September 29, 2015 at 10:57 pm

    great work dude

  5. Reply SHAHRIAR ISLAM July 16, 2015 at 10:17 pm

    This doesn’t work if wscript.exe’s scriptation is disabled

  6. Reply surya karri April 24, 2015 at 4:07 pm

    Will you please create another script for auto login.

  7. Reply Bitesh April 17, 2015 at 6:20 am

    Did Not Work!!!

  8. Reply Alex March 18, 2015 at 10:57 pm

    Great work!
    I’ve made it a bit more generic, now you can type your own text really simple.
    btw if you use notepad++ and enable regular expressions in search&replace you can just search for [“|”] and replace it with a normal double-quote.

    dim t
    dim text
    dim min
    dim max

    ‘text that should be typed
    text = “none shall pass!”
    ‘minimum time between 2 letters
    min = 100
    ‘maximum time between 2 letters
    max = 200

    ‘ `function´ to write text letter by letter
    Sub writeText(theText)
    for i=1 to Len(theText)
    ‘write 1 letter
    wshshell.sendkeys Mid(theText,i,1)
    ‘get random sleep time
    randomize
    t = min + (rnd * ((max – min) + 1))
    wscript.sleep t
    next
    End Sub

    ‘main runtime
    set wshshell = wscript.CreateObject(“wScript.Shell”)
    wshshell.run “Notepad”
    wscript.sleep 400
    writeText(text)

  9. Reply simranjit singh December 29, 2014 at 8:18 pm

    AWESOME POST, GREAT QUALITY CONTENT DUDE. CARRY ON…….

  10. Reply uk August 14, 2014 at 6:29 pm

    gud1

  11. Reply raman August 8, 2014 at 3:00 pm

    it isnt working even after retyping what is wrong

    • Reply jigar Tank August 8, 2014 at 7:47 pm

      What is the error you are getting while performing this Notepad Trick ?

      • Reply Avi Malhotra August 31, 2014 at 10:33 pm

        Even after retyping manually, same error is coming again and again..!

  12. Reply RANJAN SETHI July 22, 2014 at 12:18 pm

    i have try to smart tricks.net not success. error code 800A0408 line 1 to char 41 .

    source: Microsoft VB script compilation error

  13. Reply Thirus March 19, 2014 at 3:16 pm

    it gives error man!

  14. Reply vel February 27, 2014 at 4:05 pm

    MY FRIEND READING THIS IS FOOL..vb

  15. Reply expert February 25, 2014 at 5:13 pm

    thanx alot it was great

  16. Reply subbareddy February 25, 2014 at 10:49 am

    It Doesn’t worked for me.

  17. Reply Preeti February 25, 2014 at 10:05 am

    That was awesome…..

    • Reply Ashish July 28, 2015 at 4:18 pm

      ohhh are you sure… it does’t work okey.

  18. Reply Jitendra February 13, 2014 at 3:53 pm

    Now delete all Double quotations ie : ” and Type them all manually from your keyboard, save it and now you will have no errors. what is the meaning of this

  19. Reply Jitendra February 13, 2014 at 3:51 pm

    i do not understand the meaning of the “Now delete all Double quotations ie : ” and Type them all manually from your keyboard, save it and now you will have no errors.”

  20. Reply AKASH SINGH January 25, 2014 at 5:40 pm

    it was great ;)

  21. Reply Maq January 13, 2014 at 7:55 pm

    Try this :P

    Option Explicit
    Dim objShell, Racey, intCount
    Set objShell = CreateObject(“WScript.Shell”)
    objShell.Run “notepad”
    Wscript.Sleep 1500
    Racey = 1000
    intCount=0

    Do While intCount < 7
    objShell.SendKeys "Hello"
    objShell.SendKeys "{ENTER}"
    Wscript.Sleep 800
    objShell.SendKeys "Insert text to type"
    objShell.SendKeys "{ENTER}"
    Wscript.Sleep 800
    objShell.SendKeys "Insert text to type"
    objShell.SendKeys "{ENTER}"
    Wscript.Sleep 800
    objShell.SendKeys "Insert text to type"
    objShell.SendKeys "{ENTER}"
    WScript.Sleep Racey
    intCount = intCount + 1
    Racey = Racey – 100
    Loop
    Wscript.Sleep 1500
    objShell.SendKeys "%F"
    WScript.Sleep 1500
    objShell.SendKeys "x"
    WScript.Sleep 1500
    objShell.SendKeys "{TAB}"
    WScript.Sleep 500
    objShell.SendKeys "{ENTER}"

    WScript.Quit

  22. Reply Jhonny Derp January 13, 2014 at 7:48 pm

    HOW TO TYPE THE COMA

  23. Reply jainish January 11, 2014 at 9:50 pm

    ;)

  24. Reply kiranarya January 11, 2014 at 9:05 pm

    now i understood why the compiler shows error.it bcoz no special characters must be there.

  25. Reply Khubaib Ahmad Khan January 8, 2014 at 12:27 pm

    nice it really works and looking for more tricks thnxxxxxxxxxx :)

  26. Reply shruti January 7, 2014 at 2:40 pm

    line. 36
    char. 1
    wht shld I do to remove this error…..

    • Reply jigar Tank January 7, 2014 at 4:20 pm

      Check out the Important Note that i have Mentioned in the post.

  27. Reply hur January 2, 2014 at 8:49 pm

    Not worked for me

  28. Reply VICKY December 6, 2013 at 6:41 pm

    THANKS FRIEND IT WORK VERY WELL. AND I WANT KNOW A FILE ON THIS TYPE ON THIS FILE WE WRITE A SCRIPT AND SAVE IT WITH EXTENCION AFTER SAVE WHEN WE OPEN THIS FILE WE WRITE SOME THING LIKE AS ” I LOVE YOU ” AFTER PRESS ENTER IT SAY I LOVE YOU I MEAN WHATEVER WE WRITE IT SPEAK IF YOU KNOW THIS FILE THEN SEND ME ITS SCRIPT AND T HANK U

  29. Reply Sufiyan November 27, 2013 at 3:58 pm

    Do add video also of trick on YouTube it makes easy for understanding your all trick & tips, please !
    [gv a smile]

    • Reply jigar Tank November 27, 2013 at 8:26 pm

      Thanks sufiyan for the advice. i appreciate.

  30. Reply cholowao November 26, 2013 at 7:33 pm

    guyz if u want easy replace click edit> replace and enjoy

  31. Reply Jaadugar November 24, 2013 at 11:06 pm

    Thanks. Works just fine, but how to start a new line….??? Please Reply.

  32. Reply sonal November 19, 2013 at 11:51 pm

    how to stop it?

  33. Reply Mahyar Kari November 19, 2013 at 1:56 am

    Thanks.

  34. Reply Ankur Shah November 18, 2013 at 11:47 pm

    Can we make use of an array and looping in this script?…..I hope like many other programming languages it may have same concepts!…..if we can, then plz tell the syntax / script…

  35. Reply priyanka November 18, 2013 at 7:37 pm

    hey bud, in the instructions given above in step 3..
    step 3: Save the above code in Notepad file As ” smarttricks.vbs ” (Without Quotes ) but make sure While saving this file select Save as type ”All files” and extension must be

    i feel the sentence is incomplete..but is it really, n what the extension must be?

    • Reply jigar Tank November 19, 2013 at 11:51 am

      The extension must be .vbs

    • Reply Ashish Kumar December 12, 2013 at 11:25 am

      simple
      the extension should be .vbs
      save as flile type should be All Files

  36. Reply rex November 18, 2013 at 4:18 pm

    Not working yaar

  37. Reply fred November 18, 2013 at 11:14 am

    it doesnt work here its an error line 1 char 37 wrong

  38. Reply dan November 18, 2013 at 6:48 am

    how to change font face or size?

  39. Reply HECTOR ALCAZAR TISCAREÑO November 18, 2013 at 2:07 am

    worked for me!..thanks, guys..looking forward for more cool stuff..

  40. Reply Shuvra November 18, 2013 at 1:29 am

    How can i go to next line?

  41. Reply khurshed November 17, 2013 at 11:38 pm

    it’s so good……….thats really nice…………thanks………..

  42. Reply pawan kumar November 17, 2013 at 11:35 pm

    Basicaly I Remove the Quotations, And Replace the Quotations in manually but it could not work.

  43. Reply Azi November 17, 2013 at 9:12 pm

    Try this

    it will woks…!!

    set wshshell = wscript.CreateObject(“wScript.Shell”)
    wshshell.run “Notepad”
    wscript.sleep 400
    wshshell.sendkeys “A”
    wscript.sleep 100
    wshshell.sendkeys “z”
    wscript.sleep 120
    wshshell.sendkeys “i”
    wscript.sleep 200
    wshshell.sendkeys “‘”
    wscript.sleep 100
    wshshell.sendkeys “s”
    wscript.sleep 140
    wshshell.sendkeys ” ”
    wscript.sleep 100
    wshshell.sendkeys “W”
    wscript.sleep 50
    wshshell.sendkeys “o”
    wscript.sleep 120
    wshshell.sendkeys “r”
    wscript.sleep 170
    wshshell.sendkeys “K”
    wscript.sleep 100
    wshshell.sendkeys “.”
    wscript.sleep 50
    wshshell.sendkeys “.”
    wscript.sleep 120
    wshshell.sendkeys “.”
    wscript.sleep 160
    wshshell.sendkeys “!”
    wscript.sleep 200
    wshshell.sendkeys “!”
    wscript.sleep 100

  44. Reply Rishabh Verma November 17, 2013 at 7:30 pm

    What does the numbers in the code indicate.?? and how to give space between the words.?? if I want to type ABCDEFGHIJKLMNOPQRSTUVWXYZ.. Then the code will be larger than your example.. then what numbers should I use for the extra letters.??

    • Reply jigar Tank November 17, 2013 at 10:52 pm

      To give a Space, instead of a letter just give a space, and you are good to go

  45. Reply Jacob November 17, 2013 at 7:22 pm

    Is there anything I can put in the code to make it move to the next line? Thanks

  46. Reply umesh pal November 17, 2013 at 7:17 pm

    i dnst work yrr

  47. Reply OhGodWhy November 15, 2013 at 9:53 am

    Works great but how to you put a space in between?

  48. Reply Argha Das November 13, 2013 at 12:57 am

    “wshshell.sendkeys “T”
    wscript.sleep 100″
    in the above line what does the no. 100 mean??

    • Reply Ibrahim November 18, 2013 at 12:09 am

      It is the number of milliseconds the computer waits for.

  49. Reply karan November 9, 2013 at 2:02 pm

    After Removing all quotations ie : ”

    The code is

    set wshshell = wscript.CreateObject(wScript.Shell)
    wshshell.run Notepad
    wscript.sleep 400
    wshshell.sendkeys S
    wscript.sleep 100
    wshshell.sendkeys M
    wscript.sleep 120
    wshshell.sendkeys A
    wscript.sleep 200
    wshshell.sendkeys R
    wscript.sleep 100
    wshshell.sendkeys T
    wscript.sleep 140
    wshshell.sendkeys T
    wscript.sleep 100
    wshshell.sendkeys R
    wscript.sleep 50
    wshshell.sendkeys I
    wscript.sleep 120
    wshshell.sendkeys C
    wscript.sleep 170
    wshshell.sendkeys K
    wscript.sleep 100
    wshshell.sendkeys S
    wscript.sleep 50
    wshshell.sendkeys .
    wscript.sleep 120
    wshshell.sendkeys N
    wscript.sleep 160
    wshshell.sendkeys E
    wscript.sleep 200
    wshshell.sendkeys T
    wscript.sleep 100

    AND THE ERROR IS

    Line: 26
    Char: 20
    Error: Expected identifier
    Code: 800A03F2
    Source: Microsoft VBScript Compilation error

    • Reply jigar Tank November 11, 2013 at 11:03 am

      Hi Karan, Basicaly you dont have to Remove the Quotations, You have to Replace the Quotations by typing yourself from your Keyboard. without Quotations, the script will never work. Hope this helps.

    • Reply Rishabh shukla November 18, 2013 at 3:12 pm

      set wshshell = wscript.CreateObject(“wScript.Shell”)
      wshshell.run “Notepad”
      wscript.sleep 400
      wshshell.sendkeys “S”
      wscript.sleep 100
      wshshell.sendkeys “M”
      wscript.sleep 120
      wshshell.sendkeys “A”
      wscript.sleep 200
      wshshell.sendkeys “R”
      wscript.sleep 100
      wshshell.sendkeys “T”
      wscript.sleep 140
      wshshell.sendkeys “T”
      wscript.sleep 100
      wshshell.sendkeys “R”
      wscript.sleep 50
      wshshell.sendkeys “I”
      wscript.sleep 120
      wshshell.sendkeys “C”
      wscript.sleep 170
      wshshell.sendkeys “K”
      wscript.sleep 100
      wshshell.sendkeys “S”
      wscript.sleep 50
      wshshell.sendkeys “.”
      wscript.sleep 120
      wshshell.sendkeys “N”
      wscript.sleep 160
      wshshell.sendkeys “E”
      wscript.sleep 200
      wshshell.sendkeys “T”
      wscript.sleep 100

  50. Reply rahul November 6, 2013 at 8:39 pm

    yaar…mene retype kar liya fir bhi kaam nhi kar rha hai………….

    • Reply jigar Tank November 7, 2013 at 6:36 pm

      You might be doing something wrong somewhere… there is absolutely no problem with the script.

  51. Reply neeraj kumar November 4, 2013 at 10:55 pm

    error in
    line:26
    char:20
    error:expected identifier
    code:800A03F2
    source:microsoft VBSscript compilation error

    • Reply jigar Tank November 5, 2013 at 10:23 am

      Hi Neeraj, Please Read the IMPORTANT above in the article…

  52. Reply Anon_ October 25, 2013 at 6:50 pm

    when i start the vbs file i got this :
    Error – Windows script host
    line 1
    char 37
    error : invailed character
    code : 800A0408

    • Reply Anon_ October 25, 2013 at 6:53 pm

      OOps , didn’t see the “IMPORTANT” message :P

  53. Reply vidya October 25, 2013 at 7:00 am

    its working nice.for any thing except this smart trick.net all codes are same or they will change?

    • Reply jigar Tank October 25, 2013 at 12:34 pm

      Everything remains the same , if you want to customize, just replace the Letters with yours.

  54. Reply Muneeb Ahsan September 22, 2013 at 8:02 pm

    It doesn’t work on my side,

    • Reply Asrin475 September 23, 2013 at 6:58 pm

      replace all Quotation marks, with regular one ( ” ). I prefer to edit programming codes in Notepadd++

  55. Reply Mayank Singh September 16, 2013 at 8:34 pm

    i want tricks related to cmd, can i’ve ?

    • Reply jigar Tank September 16, 2013 at 9:31 pm

      Just Stay Connected, Will be Updating the blog Daily.

Leave a reply