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#
  4. Dead Keys

Dead Keys

Scheduled Pinned Locked Moved C#
questionhelptutorial
5 Posts 3 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.
  • L Offline
    L Offline
    Loveday78
    wrote on last edited by
    #1

    Hi! I'm trying to do a virtual keyboard for my application. I want it to be localizable but I have a major problem: how can I emulate a key stroke with SendKeys for the so called dead keys? I tryied for example with: SendKeys.Send("{^}e"); //(for the french ê) but it doesn't seem to work. Am I doing something wrong? Is it even possible to do? Thanks to anyone who'll reply. Loveday

    L D 2 Replies Last reply
    0
    • L Loveday78

      Hi! I'm trying to do a virtual keyboard for my application. I want it to be localizable but I have a major problem: how can I emulate a key stroke with SendKeys for the so called dead keys? I tryied for example with: SendKeys.Send("{^}e"); //(for the french ê) but it doesn't seem to work. Am I doing something wrong? Is it even possible to do? Thanks to anyone who'll reply. Loveday

      L Offline
      L Offline
      LongRange Shooter
      wrote on last edited by
      #2

      Is the keyboard switched to the French culture keyboard? There are 10 kinds of people in the world.
      Those that read binary...
      ...and those who don't.

      L 1 Reply Last reply
      0
      • L Loveday78

        Hi! I'm trying to do a virtual keyboard for my application. I want it to be localizable but I have a major problem: how can I emulate a key stroke with SendKeys for the so called dead keys? I tryied for example with: SendKeys.Send("{^}e"); //(for the french ê) but it doesn't seem to work. Am I doing something wrong? Is it even possible to do? Thanks to anyone who'll reply. Loveday

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #3

        I believe that you can't. What you probably will need to do is reproduce the dead keys behavior, i.e., when you detect a dead key press, you wait until the next key press to really execute the action, e.g., SendKeys.Send("ê"). I see dead pixels Yes, even I am blogging now!

        L 1 Reply Last reply
        0
        • L LongRange Shooter

          Is the keyboard switched to the French culture keyboard? There are 10 kinds of people in the world.
          Those that read binary...
          ...and those who don't.

          L Offline
          L Offline
          Loveday78
          wrote on last edited by
          #4

          theRealCondor wrote: Is the keyboard switched to the French culture keyboard? Yes, it is...

          1 Reply Last reply
          0
          • D Daniel Turini

            I believe that you can't. What you probably will need to do is reproduce the dead keys behavior, i.e., when you detect a dead key press, you wait until the next key press to really execute the action, e.g., SendKeys.Send("ê"). I see dead pixels Yes, even I am blogging now!

            L Offline
            L Offline
            Loveday78
            wrote on last edited by
            #5

            Thank you...I suspected so. The problem now is that there isn't any real keyboard. Bye

            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