Thread: Sending key...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    29

    Sending key...

    How can i send a key to a hwnd?
    I want return (enter) to be sent to a hwnd

    SendMessage(edit, WM_KEYDOWN, 0, (LPARAM)VK_RETURN);

    didnt work.What should i use?
    Dev-C++ 4.9.9.2
    Code::Blocks
    Win XP

  2. #2
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    try sending a WM_KEYUP after it, or just sending it as a WM_CHAR.
    -- Rocky
    -- DreamSys Software (http://www.dreamsyssoft.com)
    -- Free Tiff 2 PDF Library (http://www.dreamsyssoft.com/tiff-to-pdf-api)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM