I want to create a program (preferably with C#) to lock the keyboard and mouse and show a full screen message saying “Face front” to all the Windows 7 PCs in my classroom apart from the tutors. What frameworks/methods could I use to achieve this? I envisage a simple program running on my PC with a list of all the student computer names, when I click a button their screen is black and keyboard locked. Any pointers are much appreciated.
It’s not a joke, try teaching young teens in a city school with all the distractions of the internet. The PCs are connected to the network and we can have admin access to each PC, IT are happy for me to code it as they don’t have the time and as for buying something we don’t have the money, our budget was cut 20% this year. Thanks
I’m shocked this has been closed, I’m asking which technology to use, where should I start on a new programming project to help me teach. Wow thanks guys.
Before I get to any solutions I’d like to say how appalled I am by some of the question comments. A school teacher educating our students is trying to find an innovative way keep the attention of his class. This person should be applauded, not ridiculed. Grow up people!
Your going to need several pieces to put all of this together. This is not meant to be suggested as a complete solution but it should get you going in the right direction(s).
First your going to need to think a bit like a hacker. You’ll need an agent app running on all the computers which communicates with the “master” computer/agent (client / server) to know when to lock / unlock. This could be fraught with all kinds of synchronization issues so be careful about polling intervals, etc.
For the keyboard you’ll essentially need what will start out as a keylogger (think hacker stealing your password). Basically the app will intercept all the keyboard inputs and prevent them from doing anything. I found another question with some info to get you started (Capture and send keyboard / mouse input in C#). I’m going to stay Completely away from the whole, do you have the right to log keyboard inputs of students here. I suggest you just throw the text away and not store it anywhere or at the very least consult your school/district lawyer.
My suggestion would be to start out with an app that takes over the whole screen (including the start menu) and is set to stay on top of all other windows. You can have a text box or something in the middle of the screen with the message you want or just hard code it.
I would suggest resetting the mouse to some corner of the screen whenever it’s moved.
Some things to watch out for:
Now for the disclaimers / warnings. You need to figure out the legal parts of this yourself, I’m not making any warranty or legal recommendations here.