Num lock on
Posted: Sat Jan 07, 2006 11:54 pm
Hi
Is there a way to ensure that the num lock key effectively stays on throughout a program, even if accidentally pressed? Sort of along the lines of "If num lock turned off, num lock turned on again".
I have a small program which records a sequence of numbers, some of which may have to be typed quickly, and it is all too easy to accidentally catch the num lock key which would then prevent further number entry via the numeric keypad until the problem was spotted.
The program executes a section of code every second using the On Timer function (as it runs a clock as well) so it's possible that the checking routine could be there.
This would have to also work when the program is compiled for distribution to any pc user, including those who may be running XP, as I want to circulate compiled copies once I've finished development, rather than the quickbasic source code..
Any ideas chaps?
The only thought I've come up with so far is to drill a hole in the key and put a pin through it once num lock is set!
Is there a way to ensure that the num lock key effectively stays on throughout a program, even if accidentally pressed? Sort of along the lines of "If num lock turned off, num lock turned on again".
I have a small program which records a sequence of numbers, some of which may have to be typed quickly, and it is all too easy to accidentally catch the num lock key which would then prevent further number entry via the numeric keypad until the problem was spotted.
The program executes a section of code every second using the On Timer function (as it runs a clock as well) so it's possible that the checking routine could be there.
This would have to also work when the program is compiled for distribution to any pc user, including those who may be running XP, as I want to circulate compiled copies once I've finished development, rather than the quickbasic source code..
Any ideas chaps?
The only thought I've come up with so far is to drill a hole in the key and put a pin through it once num lock is set!