Solved
How to fully disable keyboard using VB for the whole computer (not only for the app)
Posted on 2004-10-07
Hi. I ' making a web cafe program and we're using pre-paid system. When the time ends up, i want to disable the keyboard and mouse so the session may be re-activated only through a TCP connection with the server i have on the backrgound.
I'm needing this because whe have some games our clients can use. The games are launched from the VB app from a ShellExecute call. But when the time end ups if our clients are inside a game i can't simply exit the game because i want user to simply lose control over the keyboard and mouse (i won't put a black screen or something like that because that would mean dealing with video and other stuff.
This way, the user would have to buy more credits. After doing that, the server app would enable again the kb and mouse. if after 2 minutes the clients doesn't add credits, the application would restore kb and mouse and shutdown the PC.
So, i need to disable the keyboard for the whole computer (not only for the application, because the application would remain minimized when playing. I would like to know if this can be done in VB 6 (i don't know nor have .NET).