here is vb code that will turn the num led on and off
code:
Const VK_num = 144
Const Vk_scroll = 145
Const VK_caps = 20
Const KEYEVENTF_KEYUP = &H2
Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Sub Command1_Click()
keybd_event VK_num, 0, 0, 0
keybd_event VK_num, 0, KEYEVENTF_KEYUP, 0
End Sub
I am not sure how to conver "Private Declare Sub keybd_event Lib "user32.dll" ...." to jscript