Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Leadorn

Win API - VM_KEYDOWN

This topic is 5984 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hail Does anyone know how I process all keyboard messages in my Winproc? Even if my program isn't active I want it to react to the keydown messages. [edited by - leadorn on May 29, 2002 12:05:37 PM] [edited by - leadorn on May 29, 2002 12:06:58 PM]

Share this post


Link to post
Share on other sites
Advertisement
I don''t think you will get WM_KEYDOWN messages in a WndProc if your app doesn''t have focus. You could try using DirectInput with a background cooperative level.

But why on earth do you need to capture the keyboard if the user isn''t using your app?


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions

Share this post


Link to post
Share on other sites
Using keyboard to start program. I don''t use explorer as a shell any more.


So I was planning on having a program to start them for me instead.

Share this post


Link to post
Share on other sites
3 words: system wide hook.

/*=========================================*/
/* Chem0sh */
/* Lead Software Engineer & Tech Support */
/* http://www.eFaces.biz */
/*=========================================*/

Share this post


Link to post
Share on other sites
No, no, no. I meant look up info on system-wide hooks. Check out:

http://qsoft.ragestorm.com/tutors/windows/kbhook.html

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!