Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Trap and remap a key for a specific application

Trap and remap a key for a specific application

Scheduled Pinned Locked Moved C / C++ / MFC
helpsalesjsontutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Berkelium
    wrote on last edited by
    #1

    I require some assistance with a unique problem, and as I am not much in the way of an Win32 API programmer, was hoping someone could help me out. I am configuring an application for a customer that would like a hotkey setup for a specific program function; however, the application itself does not support the space bar as a hotkey. I was looking at maybe trapping the space bar for this specific application and remapping the key as a hotkey that it does support (like F12), but leaving the space bar functionality intact for other programs also running. I have no idea how to go about doing this, whether it can be done, or if it is even the best solution for the problem. I do not have access to the application code for which I am trying to add this additional support to. Does anyone have any suggestions? Thanks :confused:

    R 1 Reply Last reply
    0
    • B Berkelium

      I require some assistance with a unique problem, and as I am not much in the way of an Win32 API programmer, was hoping someone could help me out. I am configuring an application for a customer that would like a hotkey setup for a specific program function; however, the application itself does not support the space bar as a hotkey. I was looking at maybe trapping the space bar for this specific application and remapping the key as a hotkey that it does support (like F12), but leaving the space bar functionality intact for other programs also running. I have no idea how to go about doing this, whether it can be done, or if it is even the best solution for the problem. I do not have access to the application code for which I am trying to add this additional support to. Does anyone have any suggestions? Thanks :confused:

      R Offline
      R Offline
      RaajaOfSelf
      wrote on last edited by
      #2

      Refer PretranslateMessage() is mSDN and u will find the answer for that probably !!! Cause is my effort; Effect is God's effort

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups