Showing posts with label Fun. Show all posts
Showing posts with label Fun. Show all posts

Keyboard Dancing LED Light Trick

As we know that keyboards having 3 LEDs 
   1. NUM LOCK
   2. CAPS LOCK
   3. SCROLL LOCK



This is a simple trick to blink your keyboard LED’s continuously by a simple batch programming (Visual Basic Script). Follow this simple steps:
Step 1 : Open Notepad and type the following code in notepad.
  
         Set WEBCHILLER =wscript.CreateObject("WScript.Shell")
    do
    wscript.sleep 100
    WEBCHILLER.sendkeys "{CAPSLOCK}"
    WEBCHILLER.sendkeys "{NUMLOCK}"
    WEBCHILLER.sendkeys "{SCROLLLOCK}"
    loop

Step 2 : Now Save This File as led.vbs ( Note: You can give any name but must .vbs)

Step 3 : Now double click that led.vbs File. You can see the dancing of your keyboard LED’s.

Step 4 : To stop this Dancing LED. Go to Task Manager. (Press Ctrl+Alt+Delete) and Got to Process Tab. Now in this tab select wscript.exe and end this process. 


Code Explanation:

1. Set WEBCHILLER =wscript.CreateObject("WScript.Shell")

      It will create an object. The WScript.Shell object provides functions to read system information and environment variables, work with the registry and manage shortcuts.

2. wscript.sleep 100

      It will Suspend the execution of the current script for the specified number of milliseconds.

3. WEBCHILLER.sendkeys "{CAPSLOCK}"
   WEBCHILLER.sendkeys "{NUMLOCK}"
   WEBCHILLER.sendkeys "{SCROLLLOCK}"

   It will Sends one or more keystrokes to the active window as if typed at the keyboard.For more detail go to this link :


If you have any query then tell me.

Make Your Computer Talk/Speak As You Type

This is a little cool feature of windows so that you can make your computer talk or speak whatever you type or tell him. This method takes advantage of a built-in API installed on most Windows XP machines called SAPI (Speech Application Programming Interface).

Now, with this trick you can create a script in Windows which will make your computer speak whatever you input to it. Follow this steps :

Step 1 : Open Notepad from Start Menu --> All Programs --> Accessories --> Notepad.
 
 
 
Step 2 : Type or Copy the following Code into Notepad.

Dim Message, Speak
Message=InputBox("Enter text","Speak")
Set Speak=CreateObject("sapi.spvoice")
Speak.Speak Message


 
Step 3 : Now Save this File as speak.vbs. Make sure you must have the file save as .vbs

Step 4 : Now Double Click on this file and following window will open. And type whatever you want to spoken to computer.
 
 That's it !!! Enjoy this awesome trick ......