Hi everyone, Which methods can be used to lock keyboard and mouse inputs using java??
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hi everyone, Which methods can be used to lock keyboard and mouse inputs using java??
What do you mean by "lock". Do you mean preventing the use of the keyboard and/or mouse?
Yeah even if user press any key or use mouse no event should occur.
I see, while this may or may not be possible I won't be able to help with this one due to the possible malicious usage. Sorry.
You might want to elaborate further the context of your question. E.g., if you're thinking of being able to embed onto a web page a Java applet that does this, well, you're on your own. If it is for a different (not potentially malicious) context, then please elaborate.
KucerakJM : I can understand but I would like to clarify here, I want to use it for my project of classroom management. So I want to use it legally with my professor's guidance.
It would be great if you can help me else it's all your wish.
Thank You.
--- Update ---
jashburn: I am doing project on classroom management that ensures classes run smoothly. I am not at all using it for any potentially malicious context.
If it is possible through Java Applet or any other source in java it would be great if you can help me.
Still not okay with the purpose let me know.
Thank You.
I have actually worked on similar applications myself, just not in java, and I am fairly certain that you will need to go into the JNI/JNA realm to achieve what you are looking for.
Does it have to be implemented from scratch? If not, just search the Internet using the search term "lock keyboard mouse". You'll find off-the-shelf utilities that are used for preventing toddlers and pets from messing up the PC/laptop. Or, thinking outside the box, just ask your professor to install a large mirror at the back of the classroom!