Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii!! All
I am having a web application in asp.net and C# as language, the requirment is that when my application is running my keyboard should automatically get lock only mouse should be working is there any way in asp.net using C# or JavaScript through which i can achieve this..
Please reply me soon
Thanks
Maneesh
Posted

1 solution

Do you want to no lock the keyboard for everything, or just for your program?
There are hooks available in windows (look for articles here with 'hook' and 'key press') that you can hang methods off of that can catch global events like key presses and mouse moves.
There are a couple of articles here on how to do it with c++, and is at least one article here on how to do it from c#.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900