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. Create shortcut key ??

Create shortcut key ??

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 4 Posters 1 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.
  • _ Offline
    _ Offline
    _skidrow_vn_
    wrote on last edited by
    #1

    My App is running and I am typing words in NotePad.exe I want my App show a messagebox (such as "hello") (when I press Ctrl+Shift+H) when I using any program in Windows? which function to do this? thank you! :rose:

    A D L 3 Replies Last reply
    0
    • _ _skidrow_vn_

      My App is running and I am typing words in NotePad.exe I want my App show a messagebox (such as "hello") (when I press Ctrl+Shift+H) when I using any program in Windows? which function to do this? thank you! :rose:

      A Offline
      A Offline
      Anthony_Yio
      wrote on last edited by
      #2

      If you are using MFC. They have this Acceralator resource which is meant for this purpose. Sonork 100.41263:Anthony_Yio

      1 Reply Last reply
      0
      • _ _skidrow_vn_

        My App is running and I am typing words in NotePad.exe I want my App show a messagebox (such as "hello") (when I press Ctrl+Shift+H) when I using any program in Windows? which function to do this? thank you! :rose:

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Look at SetWindowsHookEx(WH_KEYBOARD, ...) for this.


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        1 Reply Last reply
        0
        • _ _skidrow_vn_

          My App is running and I am typing words in NotePad.exe I want my App show a messagebox (such as "hello") (when I press Ctrl+Shift+H) when I using any program in Windows? which function to do this? thank you! :rose:

          L Offline
          L Offline
          Larry J Siddens
          wrote on last edited by
          #4

          Check the message WM_SETHOTKEY. I stumbled across this looking for something else so don't ask how to use it! :doh: Larry J. Siddens Cornerstone Communications TAME THE DOCUMENT MONSTER www.unifier.biz

          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