如何找到numlock的状态 [英] How to find the state of numlock

查看:127
本文介绍了如何找到numlock的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何找到打开或关闭的numlock状态.
如果有人知道,请尽快答复我.

谢谢您,
Amit Mehan

Hello All,

How we can find the state of numlock that it is on or off.
If anybody knows reply me soon as soon.

Thanks With Regards,
Amit Mehan

推荐答案

您需要导入 WinAPI 函数GetKeyState.
看这里:
讨论1 [ ^ ]

现在,
如果您愿意自己跟踪状态,而不关心它是否最初被按下.您可以使用Event在JavaScript中进行操作.
在这里查看:讨论2 [ ^ ]
You need to Import the WinAPI function GetKeyState.
Look here:
Discussion 1[^]

Now,
If you''re willing to track the state yourself, and don''t care whether it was initially pressed. You can do it in JavaScript using Event.
Look here: Discussion 2[^]


这篇关于如何找到numlock的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆