Jay1b Posted November 25, 2003 Posted November 25, 2003 Is there a way i can write a program to run in the background, that will turn off Capslock if i accidentally press it when typing in any program? I havent got a clue where to start with this. Thanks. Quote
Moderators Robby Posted November 25, 2003 Moderators Posted November 25, 2003 This is the most ridiculous thing I've ever heard. Instead you can trap the keypress events in your application to not allow Caps. Quote Visit...Bassic Software
Jay1b Posted November 25, 2003 Author Posted November 25, 2003 >This is the most ridiculous thing I've ever heard. Why thank you ;) Its a stupid boss request, he keep pressing capslock when typing and realising after bout 3 sentences later - so i get the job of trying to figure out, how to disable it by writing a program that will run as a background process. He didnt like my idea about physically removing the key :( I dont think he will get what he wants on this once...... Quote
Moderators Robby Posted November 25, 2003 Moderators Posted November 25, 2003 I'm still laughing at this... "He didnt like my idea about physically removing the key" Quote Visit...Bassic Software
Administrators PlausiblyDamp Posted November 25, 2003 Administrators Posted November 25, 2003 Lateral thinking!! Should be in every developers toolbox. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Gurus* Derek Stone Posted November 26, 2003 *Gurus* Posted November 26, 2003 Don't laugh. I ripped the capslock, scroll lock, and insert keys off this keyboard long ago. Quote Posting Guidelines
Jay1b Posted November 26, 2003 Author Posted November 26, 2003 A friend has sent me this. http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q177/6/74.asp&NoWebContent=1 Ok its VB6, but if i updated it to .net - do u think this would work if i perhaps put it in some sort of timer loop? Ok i know it would use loads of resources. Quote
*Gurus* Derek Stone Posted November 26, 2003 *Gurus* Posted November 26, 2003 It would hardly use any resources at all. A timer will not have a significant impact on a system that performs billions of operations per second. If your boss is too thick-headed to remove the key, then this is your only solution just about, so go with it, nomatter how disgusting it seems. As long as you're getting paid to do it, who cares? :) Quote Posting Guidelines
Leaders dynamic_sysop Posted November 26, 2003 Leaders Posted November 26, 2003 have you thought about hooking in to the keyboard , to monitor it's events? here's a link to a code example, it would save running a timer that had to continually send out keyboard state api messages to check for caps lock etc. Managing Low-Level Keyboard Hooks in VB .NET Quote
Jay1b Posted November 26, 2003 Author Posted November 26, 2003 Excellent. I shall look into these. I managed to convince i was too busy to even consider it for quite some time - give it a week and hopefully he will forget :) Quote
*Experts* Nerseus Posted November 26, 2003 *Experts* Posted November 26, 2003 Have him buy a "good" keyboard. I use the MS Internet Pro (lots of extra buttons). The software, Intellitype Pro, includes the ability of turning off the CAPS lock key. Yes, seriously :) -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Moderators Robby Posted November 26, 2003 Moderators Posted November 26, 2003 It's cheaper to buy a new keyboard then paying to develop a silly program like that. :) Quote Visit...Bassic Software
JumpsInLava Posted November 27, 2003 Posted November 27, 2003 Just a note....have you ever noticed if you enter Microsoft Word with the Caps Lock on, and start typing a sentence like: "[shift]tHIS", as soon as you hit space it will correct the first word and toggle the Caps Lock for you? I've always thought that was pretty cool. Quote
Moderators Robby Posted November 27, 2003 Moderators Posted November 27, 2003 Same if you start a new sentence in lower case. Quote Visit...Bassic Software
Jay1b Posted November 27, 2003 Author Posted November 27, 2003 >It's cheaper to buy a new keyboard then paying to develop a silly program like that. Very true, but i usually work with ingres, and i would much rather make a stupid VB app then write a serious app to run on ingres. Quote
Tygur Posted November 28, 2003 Posted November 28, 2003 Disabling caps lock isn't a stupid idea. I hit it very frequently when I go for the A key, and I never intentionally use it at all. I used to disable it all the time with a powertoy that was available for the purpose (i think it was only for win9x or something like that, it's been a while). I'm not interested in taking keys off the keyboard (but jamming something under the button is tempting). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.