Jump to content

Reading user input entering from keyboard

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
pronetin

pronetin

    Newbie

  • Members
  • Pip
  • 1 posts
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?

#2
BuckAMayzing

BuckAMayzing

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
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.