Jump to content

poll the keyboard or inputBox without buttons?


Neimo
 Share

Recommended Posts

Just like it's possible to get a pixel's color, I want to check what keys are being pressed, or a specific key. Ideally it would be a modifier key like Shift so that Windows won't do anything with the input before or after the polling.

So far I've got a MsgBox that will do what I want if the user selects OK. After 2 seconds the box times out and the default action happens instead. What I really want is no waiting at all. If the user is holding down a key, do "A", otherwise, do "B" which is the default. Similar to how most of the time people want their CDs or DVDs to Autorun, but occasionally when they don't, they hold down the Shift key. That's what I want. Is it workable?

edit Ummm, I guess HotKey is the closest I'm going to find, right? Enable one, check for it, and then disable it? Can't use Shift though...

Edited by Neimo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...