public class Lock_Key_Control_In_Java {
public static void main(String[] args) {
Toolkit tk = Toolkit.getDefaultToolkit();
//enable disable key state Caps Lock, Scroll Lock, Num Lock keys
tk.setLockingKeyState(KeyEvent.VK_NUM_LOCK, true);
tk.setLockingKeyState(KeyEvent.VK_CAPS_LOCK, false);
tk.setLockingKeyState(KeyEvent.VK_SCROLL_LOCK, false);
}
}
The lock keys LED in the keyboard should be turned ON or OFF ?
Java - contro lkeyboard 'lock key' state programmatically
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment
Your Comment and Question will help to make this blog better...