Keyboard


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 10 of 10

Thread: Keyboard

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Keyboard

    [Originally posted by Interloper]

    Is is possible to disable the keyboard with VB? I'm want to use this in an ActiveX control.

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Keyboard

    [Originally posted by Greg DeBacker]

    For all of Windows - every application and the desktop, or just your application?

    Grex

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Keyboard

    [Originally posted by Interloper]

    For everything.

  4. #4
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Re:Keyboard

    [Originally posted by Greg DeBacker]

    That is going to be very tough. I doubt anyone will have ready-made code to do that. You are going to need to subclass every application and the desktop. To be honest, I'm just guessing. I don't even know if you could do it with subclassing.

    Grex

  5. #5
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Re:Re:Keyboard

    [Originally posted by Interloper]

    Well... assume that the mouse is going to be disabled at the same time. That means that they could not do much unless they reset the computer. That should make it easier, I guess. I don't know if it would be different for ActiveX.

  6. #6
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Re:Re:Re:Keyboard

    [Originally posted by Greg DeBacker]

    Are you the same person that was asking about "Volume"? If so, you seem to think ActiveX has more capabilities than VB. The fact is you will probably be writing ActiveX controls with VB. ActiveX is not a programming language.

    Grex

  7. #7
    Join Date
    Aug 2004
    Posts
    43,023

    This is how to do what you want...

    [Originally posted by John Citizen]

    This is what a keen minded junior where i used to work once did to confuse a more experienced vb coder. (It was quite funny).

    He did not disable the keyboard... but it had the same effect.

    Your code has to do this:

    1) Take a screenshot of the computer. (SendKeys PrtScr)

    2) Open a form in your program and make it full screen. Over startbar and all... not maximized... FULL SCREEN. Display the screen shot in your form... so your form looks like the desktop.

    3) Make your form on top all the time no matter what.

    4) Disable key combos that will show other forms (Alt-Tab, Cntrl-Alt-Delete)

    The code to all these steps can be found in free vb.

    You will not have disabled the keyboard... but people will be looking at your form and pressing keys and nothing will happen. (becuase they will be trying to type and click in a bitmap on your form... not the desktop or program they think they are using). This also means it looks like the mouse is disabled to.

    John Citizen
    NeocomIT
    www.neocomit.com.au

  8. #8
    Join Date
    Aug 2004
    Posts
    43,023

    Re:This is how to do what you want...

    [Originally posted by Greg DeBacker]

    Clever idea. Does it work if the TaskBar is set to Always On Top? What about Ctrl+Esc to bring up the Start menu? I think that key stroke combination is trapped by the system before it gets to your app.

    Grex

  9. #9
    Join Date
    Aug 2004
    Posts
    43,023

    Re:This is how to do what you want...

    [Originally posted by Interloper]

    Sorry, but that defeats the purpose of what I want to do.

  10. #10
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Re:Re:Re:Re:Keyboard

    [Originally posted by Interloper]

    Yes. It's not my decision to use ActiveX, and I know it's not a programming language.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center