Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Num Lock - Create Shortcut in Windows


Num Lock - Create Shortcut in Windows

How to Create a Desktop Shortcut to Turn Num Lock ON or OFF
Published by Kari
06 Feb 2013
Published by

How to Create a Desktop Shortcut to Turn Num Lock ON or OFF

information   Information
Some modern laptop keyboards have no Num Lock key. Instead the user needs to set Num Lock in BIOS.

Various applications might turn Num Lock ON or OFF without user knowing of it.

This tutorial will show you how to create a shortcut to turn the Num Lock on or off when you want to in XP, Vista, Windows 7, and Windows 8.



This is how:

1. Open Notepad

2. Copy the following code into a new text document:

Code:
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{NUMLOCK}"
3. Select Save as type: All Files (*.*), name the file as you wish and give it a .vbs extension to save your file as a Visual Basic Script:
-numlock_1.png
4. Create a shortcut for your NumLock script on your desktop (Create Shortcut & Change Shortcut Icon tutorials)


Note   Note
Now you have a Num Lock shortcut which toggles NumLock ON and OFF every time it is clicked. Please notice that when script is run it gives you no sign or message; it simply turns Num Lock ON if it was OFF and vice versa.



That's it,

Kari








06 Feb 2013   #1
Brink
Microsoft MVP

64-bit Windows 10
 
 

Nice tutorial Kari.


My System SpecsSystem Spec
06 Feb 2013   #2
Lady Fitzgerald

Win 7 Ultimate 64 bit
 
 

What I would like to be able to do is disable the NUM LOCK key so it stays on all the time. I'm constantly fat fingering the stupid thing.
My System SpecsSystem Spec
06 Feb 2013   #3
maxie

windows 7 home 64bit
 
 

Cheers Kari that will be handy
My System SpecsSystem Spec
.


06 Feb 2013   #4
Kari

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Quote   Quote: Originally Posted by maxie View Post
Cheers Kari that will be handy
Thanks.

Strangely enough it does not work on one laptop out of four I tested now.

Kari
My System SpecsSystem Spec
06 Feb 2013   #5
maxie

windows 7 home 64bit
 
 

Quote   Quote: Originally Posted by Kari View Post
Quote   Quote: Originally Posted by maxie View Post
Cheers Kari that will be handy
Thanks.

Strangely enough it does not work on one laptop out of four I tested now.

Kari
It works on mine though
My System SpecsSystem Spec
06 Feb 2013   #6
z3r010

 

Quote   Quote: Originally Posted by Lady Fitzgerald View Post
What I would like to be able to do is disable the NUM LOCK key so it stays on all the time. I'm constantly fat fingering the stupid thing.
Fix here
My System SpecsSystem Spec
06 Feb 2013   #7
Brink
Microsoft MVP

64-bit Windows 10
 
 

My System SpecsSystem Spec
06 Feb 2013   #8
Lady Fitzgerald

Win 7 Ultimate 64 bit
 
 

Quote   Quote: Originally Posted by z3r010 View Post
Quote   Quote: Originally Posted by Lady Fitzgerald View Post
What I would like to be able to do is disable the NUM LOCK key so it stays on all the time. I'm constantly fat fingering the stupid thing.
Fix here
Oh, that was cold! Cold, man. That said,
My System SpecsSystem Spec
14 Feb 2013   #9
Imold

Windows 7 Home Premium (64-bit) Service Pack 1
 
 

Quote   Quote: Originally Posted by Kari View Post
Quote   Quote: Originally Posted by maxie View Post
Cheers Kari that will be handy
Thanks.

Strangely enough it does not work on one laptop out of four I tested now.

Kari
Well you can always use the num lock key on the on-screen keyboard.
My System SpecsSystem Spec
Comment

 Num Lock - Create Shortcut in Windows




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
SysKey - Create USB Key to Lock or Unlock Windows
How to Create a USB Startup Key to Lock or Unlock Windows SysKey (SAM Lock Tool) is an in-built Windows utility that can help you secure the Security Accounts Management or SAM database. The SAM Database stores hashed copies of our user passwords, which is encrypted with a locally stored system...
Tutorials
Custom 'Desktop (create shortcut)' Remove .fileextension - Shortcut
Hi guys n girls, I have for ever got sick and tired of right click -> open Send to Menu and creating a Desktop Shortcut for a file or app....then needing to go to the Desktop right click the newly made shortcut and then removing the trailing file extension, dash and words shortcut in brackets....
Customization
Windows+L shortcut key (lock session) not working anymore
hello, everything's in title, this shortcut doesn't work anymore, randomly (comes back later) nothing happen when pressed. i'd like to find out why!
General Discussion
Connect To Shortcut - Create in Windows 7
How to Create a "Connect To" Shortcut in Windows 7 This will show you how to create or download a Connect To shortcut that opens the same "Currently connected to" pop-up as when you click on the Network system icon on the taskbar. EXAMPLE: Connect To
Tutorials
Windows Firewall Shortcut - Create
How to Create a Windows Firewall Shortcut in Windows 7 and Windows 8 Windows Firewall is software that checks information coming from the Internet or a network, and then either blocks it or allows it to pass through to your computer, depending on your firewall settings. This will tutorial...
Tutorials
Lock Computer - Create Shortcut
How to Create a "Lock Computer" Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create a Lock Computer shortcut that can be used where you like in Windows 7 and Windows 8. By default, you can also press the Windows + L keys to lock the computer.
Tutorials

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:43.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App