Results 1 to 3 of 3

Thread: [2005] Detecting Keystrokes

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    6

    [2005] Detecting Keystrokes

    Hi guys, I can detect key strokes using the keydown function, but this only works when the form has focus, I am after a way to detect all keystrokes despite what program has the focus, can any one help?

  2. #2
    New Member
    Join Date
    Nov 2007
    Posts
    4

    Re: [2005] Detecting Keystrokes

    There was a thread about this somewhere, global hot keys. You can search for it. Though, I doubt you'll understand it, I didn't xD


    Found it http://www.vbforums.com/showthread.p...42#post2729342

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Detecting Keystrokes

    You wouldn't use hot keys unless you were listening for a specific key or key combination. If you want to detect all key strokes then you will need to set a keyboard hooking. There are also examples of that posted on the forum. If you search the VB.NET forum and the VB.NET CodeBank forum you should find them.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width