Thread: VK_* codes

  1. #1
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125

    Question VK_* codes

    How do you get a Virtual Key code from the weird code that lParam and wParam give you when there is a key hit. If I am not making sense I'll ask you this... how could I send a key to a window (sendmessage()) and identify that key by it's VK_* code?
    Thanks in advance!
    canine
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    You could try -

    SendMessage(hWnd,WM_KEYDOWN,VK_THEKEY,0);
    zen

  3. #3
    Registered User govi's Avatar
    Join Date
    Nov 2001
    Posts
    14
    Hi,

    Check out the MSDN site, it has got hell a lot of inofrmation....
    In one of the pages...now don't ask me the link, cause my head is spinning after my 2hrs of search in MSDN...

    It has got a table of VK_* code & their corersponding charachters/KEY...

    Hope this helps....
    govi

  4. #4
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    this one?:
    http://msdn.microsoft.com/library/de...l-keycodes.asp

    sorry for the bump, but I was looking through old threads

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. codes
    By IfYouSaySo in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 11-18-2005, 03:09 PM
  2. Replies: 1
    Last Post: 07-12-2005, 09:03 PM
  3. action replay codes
    By c++.prog.newbie in forum Game Programming
    Replies: 2
    Last Post: 02-28-2004, 08:47 AM
  4. anyone have linked-list sample codes?
    By ling in forum C++ Programming
    Replies: 3
    Last Post: 07-03-2002, 02:24 PM