PDA

Click to See Complete Forum and Search --> : K€YB0@®D


vbAlex
Apr 18th, 2000, 12:46 AM
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..)

( :] )

Darkwraith
Jul 22nd, 2003, 04:53 PM
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.

Electroman
Jul 22nd, 2003, 05:03 PM
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??

Darkwraith
Jul 22nd, 2003, 05:24 PM
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.

Venom555
Jul 22nd, 2003, 07:44 PM
Can't you just not let your application lose focus and then do nothing on keypress?

Fox
Jul 22nd, 2003, 10:50 PM
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? :D

Darkwraith
Jul 23rd, 2003, 02:48 PM
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.

Electroman
Jul 23rd, 2003, 03:06 PM
You can disable C->A->D unless you are refering to XP, in which case i'm not sure??

Darkwraith
Jul 23rd, 2003, 04:15 PM
I know that NT you can't. (Sorry. I forgot that Win 9x and ME, you can.)

http://www.vbforums.com/showthread.php?s=&threadid=189229

(This is why I answer old posts. :p )

Electroman
Jul 23rd, 2003, 04:33 PM
:p :p :p :p :p :p :p :p :p
hehe
Ok then, I wasn't complaining anyway I just wasn't sure if you knew they were all old, as I said this sections never had so many active threads, wooppppeeee:D

Darkwraith
Jul 23rd, 2003, 05:51 PM
It was more of a cute way to point out that I'm not crazy in a light tone than to make any point. :D