Disable keyoard
BlitzPlus Forums/BlitzPlus Programming/Disable keyoard
| ||
hiho, I want to isble the keyboard, to "lock" the screen and. (To enter the passwort to unlock the screen I want to use a virtual keyboard with the mouse) Has anybody a link,tip,userlib,code ? |
| ||
There seems to be a command that is called BlockInput() in user32.dll, however it also disables the mouse. Then again, I'm not sure if it disables the mouse in Blitz after HideCursor is used, so you could give it a try. And maybe you could try a search on 'disable keyboard api' ? |
| ||
Yes blockinput() works. I used waitkey() after it^^. But I found nothing that only disbales the keyboard :´( |
| ||
Hmm, I can't find one either. It seems you should use a 'keyboard hook' for that, which is a bit more complicated, because it needs a pointer to a Function. It is possible, but quite tricky. I believe I saw it on the Russian blitz site once. However, there is also a DLL, that can block 'intrusive' keys, such as alt+tab, ctrl+esc etc.: http://www.blitzbasic.com/codearcs/codearcs.php?code=1334 |
| ||
Thanks |