Locking and unlocking the keyboard and mouse through java

Posted on 2001-07-31
Last Modified: 2008-02-01
I want to write a java program to lock and unlock the keyboard and mouse on winNT  using the java program. Please help me to do this. Atleast give me an idea how to proceed so that i can reach my goal.  
Question by:m_ralekar
LVL 92

Assisted Solution

objects earned 100 total points
ID: 6337247
DOn't know of any pure Java way of doing that.
You'll need to use JNI or some other native implementation.

Accepted Solution

shyamkumarreddy earned 100 total points
ID: 6337258
Hey Ralekar

You Need a JNI is that is sure.
But i want to bring you a notice abt something regarding this.

If u still can implement this, but not all OS I mean even in Windows u can do this.

You can Lock your ur devices in 3.2,95,98
I know u cann't do it with Win2000 and not much i know abt NT.

Microsoft has removed a device control in 2000. In order to use this feature. U need to reboot the system to take place. This is special feature in 2000.

I don't know abt NT.
This is for your information



Author Comment

ID: 6339780
Hi . .
Can u tell me any native implementation for this. If u r having any native program to do it please send it to me it will be very much helpful to me.
Thank you.
LVL 14

Expert Comment

ID: 9025716
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

[split points between shyamkumarreddy and objects]

Please leave any comments here within the next seven days.
EE Cleanup Volunteer
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 51
Groovy:unable to resolve class error 2 65
Java DateChooser? 3 29
Java SE 8u111  Lot of stuff broke 11 52
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now