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.
Trick 1: Wish Good Day on Boot
Wish a Good day to anyone who logs in to your PC with their name.
- Open Notepad.
Right Click > New > Text Document
- Copy and Paste below code in Notepad.
NOTE: You can Change Quoted Text according to yourself.name=inputbox("What's your name?")msgbox("Have a good day, ") + name
- 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.
- Open Notepad.
Right Click > New > Text Document
- Copy & Paste below code in Notepad.
pass=inputbox("Enter Password...")
Note: Change the highlighted text 'Your Message Here.. ' with you message. &
if pass="password" then msgbox("Your Message Here..") else msgbox("Incorrect Password! Exiting... ")
password with your own Password.
- 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
- Open Notepad.
Right Click > New > Text Document
- Copy and Paste below code in Notepad.
msgbox("Hello!")
NOTE: You 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.
DO
msgbox("Hello, Again!")
LOOP
- 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. :)
For any questions related to this trick comment below. :)
No comments:
Post a Comment