Results 1 to 11 of 11

Thread: K€YB0@®D

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Cool

    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..)

    ( :] )


  2. #2
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    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.

  3. #3
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    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.

  4. #4
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    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.

  5. #5
    Hyperactive Member
    Join Date
    Jan 2003
    Location
    The Netherlands
    Posts
    386
    Can't you just not let your application lose focus and then do nothing on keypress?

  6. #6
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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?

  7. #7
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    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.

  8. #8
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    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.

  9. #9
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    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.

  10. #10
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    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
    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.

  11. #11
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    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
  •  



Click Here to Expand Forum to Full Width