Wednesday 7 May 2014

Cool Notepad Tricks (.VBScript Tricks)

In this post I am going to share some cool fun tricks with VBScript. These tricks are completely safe and you can use them in your Computer.  
Cool Notepad Tricks (.VBScript Tricks)
                                        

Trick 1: Wish Good Day on Boot

Wish a Good day to anyone who logs in to your PC with their name. 
  1. Open Notepad.
    Right Click > New > Text Document
     
  2. Copy and Paste below code in Notepad.

    name=inputbox("What's your name?")

    msgbox("Have a good day, ") + name
     NOTEYou can Change Quoted Text according to yourself.
     
  3. Save the file as 'Welcome.vbs' and Double click to Open it & Check if it is working or not.
Now Copy the 'Welcome.vbs' file and Paste it in Start-up folder if you want to see this script on boot.

Trick 2: Create a Password Protected VBScript Message

Use this trick to create a VBScript with password protection. 
  1. Open Notepad.
    Right Click > New > Text Document
     
  2. Copy & Paste below code in Notepad.
    pass=inputbox("Enter Password...")

    if pass="password" then msgbox("Your Message Here..") else msgbox("Incorrect Password! Exiting... ")
     NoteChange the highlighted text 'Your Message Here.. ' with you message. &
                password with your own Password.
     
  3. Save the file as 'Message.vbs'.
Now you will have to enter the password if you want to see the Message. Default Password is 'password'. You can change it by changing the highlighted text in code.

Trick 3: Create a Message Box Loop

  1. Open Notepad.
    Right Click > New > Text Document
     
  2. Copy and Paste below code in Notepad.
    msgbox("Hello!")

    DO

    msgbox("Hello, Again!")

    LOOP
     NOTEYou can change the Keywords Hello & Hello Again with your messages. 'Hello!' will be shown only once & 'Hello, Again!' will loop until you stop this script.
     
  3. Save the file as 'Loop.vbs'.
Double click on Loop.vbs file to open it. Click Here to know How to Stop this Trick.

For any questions related to this trick comment below. :)

No comments:

Post a Comment