-
Oct 10th, 2002, 03:55 AM
#1
Thread Starter
Addicted Member
how to lock the keyboard
ie. when my application is started, the keyboard must be locked, such that the user is allowed to use only the mouse, when my application is unloaded, the usual setting must be retained(ie. the keyboard must work),
how to proceed,
any suggestion, samples appreciated
thanx in advance
-
Oct 10th, 2002, 04:05 AM
#2
do you want the keyboard to work in other applications that are running in other programs when yours is running, or just block the keyboard completely.
I don't think there is an easy way of blocking the keyboard entirely across the system, you can block the mouse and keyboard together using the BlockInput API (NT/2000 upwards only).
For keyboard blocking on just your app you could ignore any keyboard input (set the forms keypreview to false and set the keys to 0 in the form_keypress event)
-
Oct 10th, 2002, 04:11 AM
#3
Thread Starter
Addicted Member
.
possibly for both use(ie, for my app. and whole keyboadr),
but still i will try ur suggestion.
-
Oct 10th, 2002, 06:44 AM
#4
Fanatic Member
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Oct 12th, 2002, 03:35 AM
#5
Thread Starter
Addicted Member
hi jian2587
ur link is not working, pls check ur link
\\%winbootdir%\system\rundll32.exe keyboard,disable
if the above is not an url link, i think it is the syntax to be used in the system, so the above syntax is for disabling the for enabling the keyboard, can i replace disable to enable
thanx
Last edited by senthilkbs; Oct 12th, 2002 at 03:39 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|