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. how can I get the integer value of INSERT from keyboard??

how can I get the integer value of INSERT from keyboard??

Scheduled Pinned Locked Moved C / C++ / MFC
questionwindows-admin
5 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.
  • D Offline
    D Offline
    danginkgo
    wrote on last edited by
    #1

    I am using: RegisterHotKey(This->hwndOuter, ID_HOTKEY_COPY, MOD_CONTROL, value_of_INSERT); // hotkeys to registry the CTRL-INSERT hotkey for copy text. I want to know the value_of_INSERT from the code above. I also want to use CTRL-PgUp, CTRL-PgDown, CTRL-End, CTRL-Home as hotkeys. How can I now these values?

    danginkgo

    S 1 Reply Last reply
    0
    • D danginkgo

      I am using: RegisterHotKey(This->hwndOuter, ID_HOTKEY_COPY, MOD_CONTROL, value_of_INSERT); // hotkeys to registry the CTRL-INSERT hotkey for copy text. I want to know the value_of_INSERT from the code above. I also want to use CTRL-PgUp, CTRL-PgDown, CTRL-End, CTRL-Home as hotkeys. How can I now these values?

      danginkgo

      S Offline
      S Offline
      Steen Krogsgaard
      wrote on last edited by
      #2

      VK_INSERT, VK_PRIOR, VK_NEXT, VK_END, VK_HOME. Defined in Windows.h Also, look in MSDN. But why do you want to register system-wide hotkeys?

      Cheers Steen. "Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006 "Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006 "One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006

      D 1 Reply Last reply
      0
      • S Steen Krogsgaard

        VK_INSERT, VK_PRIOR, VK_NEXT, VK_END, VK_HOME. Defined in Windows.h Also, look in MSDN. But why do you want to register system-wide hotkeys?

        Cheers Steen. "Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006 "Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006 "One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006

        D Offline
        D Offline
        danginkgo
        wrote on last edited by
        #3

        Thank you. That helped me much:) I am working at a IE plug-in and I had to use CTR-R, CTRL-H as hotkeys for the plug-in. These were also hotkeys for the browser. So I used RegisterHotKey and UnregisterHotKey. Is there another way that I can override or disable the browser's hotkeys while the plugin is used?

        danginkgo

        S 1 Reply Last reply
        0
        • D danginkgo

          Thank you. That helped me much:) I am working at a IE plug-in and I had to use CTR-R, CTRL-H as hotkeys for the plug-in. These were also hotkeys for the browser. So I used RegisterHotKey and UnregisterHotKey. Is there another way that I can override or disable the browser's hotkeys while the plugin is used?

          danginkgo

          S Offline
          S Offline
          Steen Krogsgaard
          wrote on last edited by
          #4

          I have never worked with IE plugins, so I can't help you there.

          Cheers Steen. "Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006 "Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006 "One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006

          D 1 Reply Last reply
          0
          • S Steen Krogsgaard

            I have never worked with IE plugins, so I can't help you there.

            Cheers Steen. "Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006 "Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006 "One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006

            D Offline
            D Offline
            danginkgo
            wrote on last edited by
            #5

            OK, thank you for your help. I'll use system wide keys and I hope I don't get no problems:)

            danginkgo

            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