Results 1 to 2 of 2

Thread: Grab keyboard events in Windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Frankfurt, Germany
    Posts
    34
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Grab keyboard events in Windows

    I have done this before, but I currently don't have access to the code anymore.

    AFAIK, there are 2 possibilities:
    1. use GetAsyncKeyState in a loop
    2. install a global keyboard hook with SetWindowsHookEx

    Your profile says you're german so this will help you:
    http://dotnet.mvps.org/vb/articles/keyboardhook/

  2. The following user says thank you to kiker99 for this useful post:

    durbrak (5th February 2007)

Similar Threads

  1. handling keyboard events from a console app
    By g.cavallin in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2006, 22:31
  2. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 01:00
  3. Windows OLE drag & drop
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 12th September 2006, 09:47
  4. Replies: 2
    Last Post: 24th July 2006, 18:36
  5. Qt and windows vista
    By munna in forum General Discussion
    Replies: 8
    Last Post: 11th January 2006, 22:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.