Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Reading user input entering from keyboard

user input

  • Please log in to reply
1 reply to this topic

#1 pronetin


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 02 June 2010 - 02:38 AM

I want to create some short-cuts for my system. For example:

If user press Ctrl+B and active windows on screen is not browser(for example user is in MyDocument folder or Home directory), browser will open.

For doing it, I need to read keyboard input always and check it for short-cuts.

How can i read keyboard input?
  • 0

#2 BuckAMayzing


    CC Regular

  • Just Joined
  • PipPipPip
  • 36 posts

Posted 02 June 2010 - 02:48 AM

You have to use hooks. I actually recently did some work with global hooks. It's pretty complicated stuff if you're a beginner, but it's not too bad if you know what you're doing. I actually know you can find a pretty good tutorial for it here.

They use it for keylogging and such, but you can process it however you want. Get to the point where you understand that tutorial, then if you still need help on how to open a process, I can help you out with that.
  • 0

Also tagged with one or more of these keywords: user input

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download