Categories
Geeky/Programming

Revenge on Numlock!

Well, since I didnt want to page the IT Department, instead, I just wrote a program to handle my problem. Code around IT I always say. .NET 2.0, created a small program to watch keyboard strokes, and if NumLock is on, put a systray icon down there, lime green with a big N. Set it up to run when I login, so I should be good to go. The code is not pretty at all, so I’m not going to post it, but if someone wants to see, let me know and I will share, maybe you can even improve it 🙂

By Steve Novoselac

Director of Digital Technology @TrekBikes, Father, Musician, Cyclist, Homebrewer

6 replies on “Revenge on Numlock!”

actually early this morning I think I found the way to know if it is docked – using WMI.

Select * from Win32_SystemEnclosure

If I just get a 10 back, then its not docked. If I get a 10, then a 12, its a laptop that is docked, I will probably incorprate this into my program.

Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.