Showing posts with label .VBS Tricks. Show all posts
Showing posts with label .VBS Tricks. Show all posts

Wednesday, 11 June 2014

Make your Keyboard Lights go Dancing - Disco Lights Effect

If you have a Backlit Keyboard (as shown in image below) then this trick is for you. You can make your keyboard lights go dancing using this trick. Lights will Switch Off and On and create disco light effect. Basicly we have to create a Visual Basic Script (.VBS Script) which will give commands to Keyboard lights to Switch On & Off in a dedicated time.
Add Disco Lights effect to your Keyboard Light
Source: images.google.com

Tutorial:

  1. Open Notepad and Copy the code below into it.
    Set wshShell =wscript.CreateObject("WScript.Shell")
    do
    wscript.sleep 100
    wshshell.sendkeys "{CAPSLOCK}"
    wshshell.sendkeys "{NUMLOCK}"
    wshshell.sendkeys "{SCROLLLOCK}"
    loop
      NOTE: You can change the value '100' to change the speed of lights going on and off.
                   For example: Changing to 50 will decrease the time.

                                  Make your Keyboard Lights go Dancing - Disco Lights Effect
      
  2. Now click on File > Save As.

                                   Make your Keyboard Lights go Dancing - Disco Lights Effect
     
  3. Save the file as 'Disco.vbs' [Name can be anything but .vbs is must]

                                    Make your Keyboard Lights go Dancing - Disco Lights Effect
     
  4. Open the recently saved file and Double click to open it & See your Keyboard lights go dancing.

How to stop this Script:

If you need any help then feel free to comment below.

Wednesday, 28 May 2014

Make your PC Welcome you on Startup with a Voice command

You must have noticed the way computers in movies welcome their users by calling out their names, specially in Iron Man Series. In this article I will show you how you can make your windows based computer welcome you in Computerized voice. Just follow the steps below to know the secret.

Tutorial:

  1. Open Notepad.
    Right Click > New > Text Document
     
  2. Now copy the below code in Notepad and change the highlighted word with your own message.
    Dim speaks, speech
    speaks="Hello User, Welcome"
    Set speech=CreateObject("sapi.spvoice")
    speech.Speak speaks
                         Make Your PC Welcome You on Startup
    NOTE: You can change the line Hello User, Welcome  to anything you want. This is what your pc speaks when it boots.
     
  3. Save the file as Welcome.vbs .
    In Notepad Screen, Click on File > Save As > Welcome.vbs 

                         Make Your PC Welcome You on Startup
     
  4. Double click on this file to see if it works or not. You will hear the above highlighted when you double click this file.
     
  5. Now Copy/Cut the file and Paste in Start-up folder if you want to hear this sound on every boot.
     Click here to Know How to Locate Startup Folder
Now next time when you Start your PC you will hear the Welcome Sound. If you need any help then you can comment below.

Wednesday, 21 May 2014

Make your CD/DVD Drive Pop Out Automatically

This program will continuously Pop out your CD/DVD Drive infinite times(Until you stop this script). This script won't harm your computer so you can use this trick on your computer. 
Image Source: images.google.com

Tutorial:

  1. Open Notepad.
    Right Click > New > Text Document
     
  2. Copy the below code in notepad:

    Set oWMP = CreateObject("WMPlayer.OCX.7")
    Set colCDROMs = oWMP.cdromCollection
    do
    if colCDROMs.Count >= 1 then
    For i = 0 to colCDROMs.Count - 1
    colCDROMs.Item(i).Eject
    Next
    For i = 0 to colCDROMs.Count - 1
    colCDROMs.Item(i).Eject
    Next
    End If
    wscript.sleep 5000
    loop

                                  

    NOTE: Here, 5000(Highlighted Value) is the time (5 Seconds/5000 Millisecond) between Drive Pop Out. You can change this value to anything you want.
     
  3. Now save this file as anything.vbs.
    Click on Notepad Menu > Save As > anything.vbs.

    For example, Save the file as PopOut.vbs [.VBS Extension is Important]

                                  
     
  4. Now Double Click on file to Run it & See your CD/DVD Drive Pop out infinite times. (You have to close your CD/DVD drive manually)

How to Stop this Script:

To stop this script you have stop 'wscript.exe' using task manager. Click here to read complete tutorial to know How to stop VBScript using Task Manager.
If you need any kind of help related to this trick then comment below.

Tuesday, 20 May 2014

Create Yes/No Error Message With Different Answer

This is the Third Part of 'Create Your own Customised Error Message using Notepad'. In this article i will teach you how to create an error message with a Yes or No question. Clicking on Yes or No will give different results. You can try this trick in your PC because this is harmless like our many other tricks.

                                    Create Yes/No Error Message With Different Answer

SEE ALSO:

PART-1: Create Simple Customised Error Message

PART-2: Create Error Message with Different Buttons and Icons

Tutorial:

  1. Open Notepad.
    Right Click > New > Text Document
     
  2. Copy and Paste the code below into Notepad. (See Image Also)

    a=msgbox("Your Yes/No Question" , 4+16 , "Box Title")
    if a = vbyes then
    b=msgbox("If yes is clicked" , 0+16 , "Box Title 1")
    else
    c=msgbox("If no is clicked" , 0+16 , "Box Title 2")
    end if
                             
                     Create Yes/No Error Message With Different Answer
     
  3. Replace the highlighted text in code with your own Question, Answer & Titles.
    Change:
    Your Yes/No Question - With the Question You want to ask
    If Yes is Clicked - The Answer that Comes if Yes button is Clicked
    If No is Clicked - The Answer that Comes if No button is Clicked
    Box Title, Box Title 1, Box Title 2 - With the Title of the Box
     
  4. Now Click On File > Save As.
     
  5. Save the file as anyname.vbs [Name can be anything but .vbs extension is important]
    For Example, message.vbs 
  6. Double Click the File to open it and Click on Yes/No to see the effect.

    Create Yes/No Error Message With Different Answer              Create Yes/No Error Message With Different Answer

Creating a Prank Using this Trick:

  1. Change the text in the code above with: (See Image)
    Box Title - Computer At Risk!!! 0x5527162
    Your Yes/No Question - Windows have found some error in your System. Please Restart your Windows to solve this error. Do You want to Restart your Computer now?

    If yes is clicked - Sorry!!! You have been fooled.. :D hahaha
    Box Title 1 - You have been fooled. LOL

    If no is clicked -  Please Restart your Computer as soon as possible. You might be at risk.
    Box Title 2 - Computer at Risk!!! 0x001243


                       Create Yes/No Error Message With Different Answer

      
  2. Save the file as prank.vbs & Copy the file to the start-up folder. Click Here to Know How to Locate Start-up folder in Windows
     
  3. Now whenever your friends or someone Log-on to your windows. He/She will see this error message.(See Images Below)

                     Create Yes/No Error Message With Different Answer

    Create Yes/No Error Message With Different Answer   Create Yes/No Error Message With Different Answer
     
NOTE: This Trick is completely harmless.

If you need any kind of help related to this trick then comment below. Also Share your Prank ideas with us in Comments.

Create Your own Error Message Using Notepad

Error Message shows warnings or error that is causing an application to work. But you can also use these boxes to have fun by making your own error messages. Here i am going to show you how to create your own error message using notepad. The process is really simple and don't require any coding knowledge or any external tools.
                                     Create Your own Error Message Using Notepad

SEE ALSO:

PART-2: Create Error Message with Different Buttons and Icons

PART-3: Create Yes/No Error Message With Different Answer

Tutorial:

1.Open Notepad.
   Right Click > New > Text Document
 

2. Now Copy the below code into the Notepad. And change the text Your error message here with your own error message.
 
MSGBOX "Your Error Message Here"
For example, MSGBOX "Hello Guys, Welcome to Windroid Tricks"

                                Create Your own Error Message Using Notepad

3. After this click on File > Save as and save the file as anyname.vbs to your desired folder.
    For example, Error MSG.vbs
                                         Create Your own Error Message Using Notepad

4. Now double click on the file and you will see a dialog box with your own error message.

                                               Create Your own Error Message Using Notepad

Now use your mind and use this trick to play pranks on your friends.
For example, Change the error message with "Windows has found some problems in your System. Please Restart your windows to solve this error." and save the file on start up folder of windows. Now every time the user will login to windows he/she will see this error message.

Click Here to know How to find Start up folder and manage files in this Folder.

If you need any kind of help related to this trick then Comment below. Also share you prank ideas in comments.




Create Error Message with Different Buttons & Icons

In this post I am going to teach you how to create a customised message box using Notepad. This is not the Simple Error Message Box that i posted in one of my previous article. In this message box you will be able to add some more buttons to make it more real. So just start learning and have fun! If you get any problem in tutorial, Just comment below.
                                        Create Error Message with Different Buttons & Icons

SEE ALSO:
PART-1: Create Simple Customized Error Message
 

PART-3: Create Yes/No Error Message with Different Answers

Tutorial:

  1. Open Notepad and Paste below code into it.
    x=msgbox("Display Text",Number,"Display Title")
                                    Create Error Message with Different Buttons & Icons
       
  2. Change the text Display Text with your message that will be shown in Message box and Display Title with the title that you want to give to your Message box.
    In place of number type the Number of the buttons that you want to show in your error box.
    For Eg: If you want to show 'Yes, No & Cancel' buttons then type 3.

    More Buttons & Their Numbers:
    0Normal message box
    1: OK and Cancel
    2: Abort, Retry, Ignore
    3: Yes, No, Cancel
    4: Yes and No
    5: Retry and Cancel
    16: Critical message icon 
    32: Warning query icon
    48: Warning message icon
    64: Information message icon
    4096: Always stay on top of the desktop
      
                             Create Error Message with Different Buttons & Icons

    Here i changed Display Text, Title and Number with my own preference.

  3. Now Click on File > Save As & Save the file as "anything.vbs" 
    Remember: 
    Name can be anything but .vbs extension is must. Here i name the file as 'Message.vbs'.

                                                 Create Error Message with Different Buttons & Icons
                     
                          Create Error Message with Different Buttons & Icons
     
  4. Save the file anywhere you want and Double click to open it and see your Message.

                                     Create Error Message with Different Buttons & Icons
NOTE: You can also Paste this file in startup folder if you want to show this Message every time you boot to your desktop. 

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. :)