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. Disabling the 'Alt' key

Disabling the 'Alt' key

Scheduled Pinned Locked Moved C / C++ / MFC
comwindows-adminhardwarejsonquestion
6 Posts 4 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.
  • M Offline
    M Offline
    Malli_S
    wrote on last edited by
    #1

    Hi, I'm trying to disable the 'Alt' key. There's a Windows' Scan Code Mapping technique which disables the keys. I'm writing the required registry entries from my Win32 application. This successfully disables the key from my physical keyboard. But this technique doesn't disable the keys from On-Screen Keyboard. When I spy the On-Screen keyboard, I found only one control on it. Is there any way or API to disable the keys from On-Screen keyboard ? Thanks in advance.

    [Delegates]      [Virtual Desktop]      [Tray Me !]
    -Malli...! :rose:****

    H R 2 Replies Last reply
    0
    • M Malli_S

      Hi, I'm trying to disable the 'Alt' key. There's a Windows' Scan Code Mapping technique which disables the keys. I'm writing the required registry entries from my Win32 application. This successfully disables the key from my physical keyboard. But this technique doesn't disable the keys from On-Screen Keyboard. When I spy the On-Screen keyboard, I found only one control on it. Is there any way or API to disable the keys from On-Screen keyboard ? Thanks in advance.

      [Delegates]      [Virtual Desktop]      [Tray Me !]
      -Malli...! :rose:****

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      Are you trying to disable the Alt key system-wide, or just for your app?

      Best wishes, Hans


      [Hans Dietrich Software]

      M 1 Reply Last reply
      0
      • H Hans Dietrich

        Are you trying to disable the Alt key system-wide, or just for your app?

        Best wishes, Hans


        [Hans Dietrich Software]

        M Offline
        M Offline
        Malli_S
        wrote on last edited by
        #3

        System wide.

        [Delegates]      [Virtual Desktop]      [Tray Me !]
        -Malli...! :rose:****

        J 1 Reply Last reply
        0
        • M Malli_S

          System wide.

          [Delegates]      [Virtual Desktop]      [Tray Me !]
          -Malli...! :rose:****

          J Offline
          J Offline
          JohnNawrocki
          wrote on last edited by
          #4

          You might need a kernel-mode device driver. http://technet.microsoft.com/en-us/sysinternals/bb897578.aspx[^]

          John Nawrocki Chief Technical Advisor Custom Molded Products

          1 Reply Last reply
          0
          • M Malli_S

            Hi, I'm trying to disable the 'Alt' key. There's a Windows' Scan Code Mapping technique which disables the keys. I'm writing the required registry entries from my Win32 application. This successfully disables the key from my physical keyboard. But this technique doesn't disable the keys from On-Screen Keyboard. When I spy the On-Screen keyboard, I found only one control on it. Is there any way or API to disable the keys from On-Screen keyboard ? Thanks in advance.

            [Delegates]      [Virtual Desktop]      [Tray Me !]
            -Malli...! :rose:****

            R Offline
            R Offline
            Rage
            wrote on last edited by
            #5

            You might try to disable it via a service. On a side note, disabling a key is a very strange requirement: Are you sure it is the solution to your problem ?

            M 1 Reply Last reply
            0
            • R Rage

              You might try to disable it via a service. On a side note, disabling a key is a very strange requirement: Are you sure it is the solution to your problem ?

              M Offline
              M Offline
              Malli_S
              wrote on last edited by
              #6

              You might try to disable it via a service. via service? why should I need a service. And if at all, how can I do that? On a side note, disabling a key is a very strange requirement: Are you sure it is the solution to your problem ? Yes.

              [Delegates]      [Virtual Desktop]      [Tray Me !]
              -Malli...! :rose:****

              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