Number lock

Kelly Burgess kellyb at montana.com
Mon May 24 03:09:57 UTC 2021


Hi Kim,

Assuming you're on Windows, try this.  I don't have a keyboard with a numLock key, but this detects my capsLock key (code 20).  144 is the numLock code.

   Register DLL ('user32','GetKeyState','JJ') Returns err
   Call DLL ('user32','GetKeyState',144) Returns result
   If result=0
      ; numlock key not pressed
   Else if result=1
      ; numlock key pressed
   End if

Kelly


More information about the omnisdev-en mailing list