|
-
Apr 18th, 2000, 12:46 AM
#1
Thread Starter
Addicted Member
H O W
C A N
I
L O C K
T H E
K E Y B O A R D
???
meanin: if the user presses any key, nothin happens...... (win doesn't get any impulse from the keyboard b'coz my program called an api to LOCK the keyboard..)
( :] )
-
Jul 22nd, 2003, 04:53 PM
#2
Fanatic Member
It depends on what you are using in terms of a programming languague. For C++, you just don't handle the keyboard events. In assembler, you don't use any interrupts that handle keyboard events.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Jul 22nd, 2003, 05:03 PM
#3
Ex-Super Mod'rater
Can't you lock the keyboard by using DirectInput and set it so it only lets your app get the keys and then if you ignore them problem solved.
he wants to stop other apps having access aswell if I understand him correct, that way if your program just doesn't handle the keyboard events the other programs running will still get them??
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Jul 22nd, 2003, 05:24 PM
#4
Fanatic Member
I believe that if you put DirectInput in Exclusive mode, you will lock the keyboard for all applications.
That is if you want to include DirectX into the application.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Jul 22nd, 2003, 07:44 PM
#5
Hyperactive Member
Can't you just not let your application lose focus and then do nothing on keypress?
-
Jul 22nd, 2003, 10:50 PM
#6
PowerPoster
H O W
C A N
I
L O C K
T H E
K E Y B O A R D
???
Is there any secret message in this char pattern?
-
Jul 23rd, 2003, 02:48 PM
#7
Fanatic Member
I believe you have to make your application have exclusive control or other applications can take focus once your application loses focus.
However, I am not too experienced in this type of thing. Normally, you don't want to do this.
P.S. You cannot disable Ctrl+Alt+Del. There is a thread on this forum that discusses this.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Jul 23rd, 2003, 03:06 PM
#8
Ex-Super Mod'rater
You can disable C->A->D unless you are refering to XP, in which case i'm not sure??
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Jul 23rd, 2003, 04:15 PM
#9
Fanatic Member
I know that NT you can't. (Sorry. I forgot that Win 9x and ME, you can.)
http://www.vbforums.com/showthread.p...hreadid=189229
(This is why I answer old posts. )
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
-
Jul 23rd, 2003, 04:33 PM
#10
Ex-Super Mod'rater
-
Jul 23rd, 2003, 05:51 PM
#11
Fanatic Member
It was more of a cute way to point out that I'm not crazy in a light tone than to make any point.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
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
|