How to light up the keyboard lights

Table of contents:

How to light up the keyboard lights
How to light up the keyboard lights
Anonim

Want to make a light presentation with LED indicators on your keyboard? You can use a simple Visual Basic script that will alternately press the Num Lock, Caps Lock, and Scroll Lock keys to turn their indicator lights on and off. This file can be run on any Windows computer and turn it into a perfect harmless prank.

Steps

1864859 1
1864859 1

Step 1. Launch Notepad

Write a small script that will alternately turn on the LEDs for the Caps Lock, Num Lock, and Scroll Lock keys on your keyboard. This will only work if these indicators are present on the keyboard. They are usually located in the upper right corner of the keyboard.

1864859 2
1864859 2

Step 2. Copy the below code into Notepad

This code is responsible for the script that will highlight the LEDs. The script is written in VisualBasic, which allows it to run on any Windows computer.

MsgBox "Just look at your keyboard's spectacle!" set wshShell = wscript. CreateObject ("wscript.shell") wscript. Createobject ("WScript. Shell") do wscript.sleep 100 wshShell.sendkeys "{NUMLOCK}" wshShell.sendkeys "{CAPSLOCK}" wshShell.sendLkeys "{SCROLL } "loop

1864859 3
1864859 3

Step 3. Open the save window

Open the File menu and select Save As.

1864859 4
1864859 4

Step 4. Switch the "File Type" option to "All Files"

This will allow you to save the file in a different format.

1864859 5
1864859 5

Step 5. Assign the ".vbs" extension to the file

This will save it as a Visual Basic script. For example, you can name it "keyboardshow.vbs". If you want to play a trick on someone, name the file something else so that when you launch it, the person does not know what he is doing.

1864859 6
1864859 6

Step 6. Save the file

Choose an easily accessible place, such as your desktop or the Documents folder.

1864859 7
1864859 7

Step 7. Run the file

Double-click the file to run the script. A dialog box should pop up on the screen with the words: “Just look at the death of your keyboard!”, And the LED indicators should start turning on and off. This script will work on any computer with Windows operating system.

  • Since the script continuously "presses" three keys, typing something legible under such conditions is almost impossible. To be able to print normally, you first have to stop the script. The script can slow down the work of old computers.
  • Transfer the file to any Windows computer using a USB flash drive. You are unlikely to be able to attach it to email, as most email services disallow VBS attachments. This is because Visual Basic is commonly used to create viruses.
  • If you want to stop the script from running, open the Task Manager. The light show will continue until you stop it. And this can be done from the task manager. To open the Task Manager, press Ctrl + Alt + Del and select Task Manager, or press Ctrl + ⇧ Shift + Esc to open it directly. If you decide to play a trick on someone, make sure that person knows how to turn off the script.
  • 1864859 8
    1864859 8
  • Click the Processes or Details tab. All processes that are currently running on the computer will be displayed here. If you do not see any of these tabs, click on the "Details" item. Windows 10 Task Manager has both a Processes tab and a Details tab. Open the "Details" tab.
  • 1864859 9
    1864859 9
  • Find the process "Wscript.exe".

    Look for it at the end of the list of processes.

    1864859 10
    1864859 10
  • Right-click on it and select End Task. Confirm stopping the process. This will bring the keyboard back to normal.
  • 1864859 11
    1864859 11
  • Popular by topic