Re: NumLock SOLVED ??

Tech-Archive recommends: Fix windows errors by optimizing your registry



>Marshall Barton wrote:
>> That sure sounds like the wrong way around, especially when
>> you consider that NumLock is the least of the problems with
>> SenKeys.
>
grumtac@xxxxxxxxxxxxx wrote:
>Just happened to think......
>
>"Least of the Problems"...... Is there any other issue that you know of
>other than it fiddling with Numlock and Capslock ?? That is all I ever
>saw here.... The SendKeys use in our Development has two problem areas
>with the CapsLock, But had constant problems with Numlock. Capslock
>isn't too bad, because at least you stay in the same field when you
>find out the state changed. That is unlike NumLock, where users would
>end up messing up all kinds of stuff accidentally, sometimes in
>completely different forms.
>
>I will probably focus on the code of the areas where Capslock goes
>wacky and get that fixed, but then Numlocks can do whatever they want
>now with the remap :-)
>
>This is a Access97 dev, so who knows, maybe an upgrade someday will be
>the real fix for us. We figured we would use it no more than 5
>years......
>
>If you know of some other strange thing I should watch for because of
>the SendKeys use, I would appreciate hearing it. So far the Num/Caps
>issues is all I ever saw complaints about, and the commands themselves
>are doing the job.


As Nikos tried to explain in your other thread, SendKeys can
send the key codes to the wrong program. The fundamental
issue is that SendKeys is an archaic holdover from the early
days of DOS (long before Access), before application had a
real programming capability. In that environment, there
could only be a single program active on the machine, thus,
there was no confusion about where to send the key codes.
In today's multi-tasking systems, there can be many programs
running at the same time and there is no guarantee the
active program is the one you want to receive the key codes.
Even if you tell the users not to start any other programs,
there are lots of ways that programs can start
automatically.

Bottom line is that SendKeys is just plain dangerous so if
can't avoid it, keep your eyes open for your systems
exhibiting strange behavior.

--
Marsh
MVP [MS Access]
.



Relevant Pages

  • RE: Toggling the NUMLOCK when using SendKeys
    ... Is there a reason for NumLock to be on other than sending only upper case ... If you just need to send upper case only, ... function to convert the string to upper case when you do the SendKeys: ... > Private Sub UserForm_Click ...
    (microsoft.public.excel.programming)
  • SendKeys Driving Me nuts !
    ... there were a few Sendkeys statements in an Access database that I ... the stupid Numlock key. ...
    (microsoft.public.access.formscoding)
  • Re: NUMLOCK-Taste plötzlich weg !!!
    ... Suche in der FAQ nach Numlock bringt u.a. ... Dort auch, wie man versuchen kann zu verhindern, dass der Sendkeys ... Keine E-Mails auf Postings in NGs senden! ...
    (microsoft.public.de.access)
  • Re: NumLock SOLVED ??
    ... >I complained a few days ago about Sendkeys and Numlock issues. ... >questioned various keyboard makers and all replied that I would not ... KeyTweak allows you to save such ...
    (microsoft.public.access.formscoding)
  • Re: NumLock SOLVED ??
    ... other than it fiddling with Numlock and Capslock ?? ... The SendKeys use in our Development has two problem areas ... with the CapsLock, But had constant problems with Numlock. ...
    (microsoft.public.access.formscoding)