SendKeys and NumLock problem...

leanpilar

Registered User.
Local time
Today, 18:03
Joined
Aug 13, 2015
Messages
94
As maybe you know after some code with SendKeys your NumLock will be disabled...
I try this function

Code:
Public Declare PtrSafe Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Long
Function numlockcheck()
numlockcheck = GetKeyState(vbKeyNumlock)
End Function

and this code at the end of the sendkeys code, at the end of current event and on code of the common used button after the problem:
Code:
If numlockcheck() = 0 Then
SendKeys "{NUMLOCK}", True
End If
but a lot of times if fail... :/
any help?
PS: I'm working how to avoid use of SendKeys but 3 lvl of navicationform on a subform is not that simple...
 
PS: I'm working how to avoid use of SendKeys but 3 lvl of navicationform on a subform is not that simple...
What are you trying to do at third level of the navigation form subforms. Maybe one of us has been there and knows a non sendkeys fix.
 
What are you trying to do at third level of the navigation form subforms. Maybe one of us has been there and knows a non sendkeys fix.
solv this thread and I'll be happy
 

Users who are viewing this thread

Back
Top Bottom